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

@@ -170,8 +170,10 @@ public:
using sha256_t = unsigned_integer <256, std::size_t>;
#ifndef __INTELLISENSE__
static_assert (sha256_t::bits == 256,
"sha256_t must have 256 bits");
#endif
} // ripple

View File

@@ -28,6 +28,7 @@
namespace ripple {
namespace tests {
#ifndef __INTELLISENSE__
static_assert( std::is_nothrow_destructible <SHAMap>{}, "");
static_assert(!std::is_default_constructible<SHAMap>{}, "");
static_assert(!std::is_copy_constructible <SHAMap>{}, "");
@@ -97,6 +98,7 @@ static_assert(!std::is_copy_constructible <SHAMapTreeNode>{}, "");
static_assert(!std::is_copy_assignable <SHAMapTreeNode>{}, "");
static_assert(!std::is_move_constructible <SHAMapTreeNode>{}, "");
static_assert(!std::is_move_assignable <SHAMapTreeNode>{}, "");
#endif
inline bool operator== (SHAMapItem const& a, SHAMapItem const& b) { return a.key() == b.key(); }
inline bool operator!= (SHAMapItem const& a, SHAMapItem const& b) { return a.key() != b.key(); }