mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix broken Intellisense (MSVC):
* MSVC Intellisense will ignore all file-level static_asserts.
This commit is contained in:
committed by
Nik Bougalis
parent
be9c955506
commit
d9ef5ef98f
@@ -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
|
||||
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user