Fix broken Intellisense (MSVC):

* MSVC Intellisense will ignore all file-level static_asserts.
This commit is contained in:
Edward Hennis
2017-01-06 12:23:44 -05:00
committed by Nik Bougalis
parent be9c955506
commit d9ef5ef98f
9 changed files with 26 additions and 0 deletions

View File

@@ -564,9 +564,11 @@ inline std::ostream& operator<< (
return out << to_string (u);
}
#ifndef __INTELLISENSE__
static_assert(sizeof(uint128) == 128/8, "There should be no padding bytes");
static_assert(sizeof(uint160) == 160/8, "There should be no padding bytes");
static_assert(sizeof(uint256) == 256/8, "There should be no padding bytes");
#endif
} // rippled