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

@@ -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;