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
@@ -577,11 +577,13 @@ static std::array<char const*, 5> const stateNames {{
|
||||
"tracking",
|
||||
"full"}};
|
||||
|
||||
#ifndef __INTELLISENSE__
|
||||
static_assert (NetworkOPs::omDISCONNECTED == 0, "");
|
||||
static_assert (NetworkOPs::omCONNECTED == 1, "");
|
||||
static_assert (NetworkOPs::omSYNCING == 2, "");
|
||||
static_assert (NetworkOPs::omTRACKING == 3, "");
|
||||
static_assert (NetworkOPs::omFULL == 4, "");
|
||||
#endif
|
||||
|
||||
std::array<char const*, 5> const NetworkOPsImp::states_ = stateNames;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user