Fix c++11 warnings on clang

- namespace x::y is C++17
- static_assert requires message in C++11
This commit is contained in:
John Keiser
2020-04-10 16:37:00 -07:00
parent 09cf18a646
commit fd418f568c
54 changed files with 319 additions and 205 deletions
+6 -2
View File
@@ -1,6 +1,8 @@
#include "simdjson/error.h"
namespace simdjson::internal {
namespace simdjson {
namespace internal {
SIMDJSON_DLLIMPORTEXPORT const error_code_info error_codes[] {
{ SUCCESS, "No error" },
{ SUCCESS_AND_HAS_MORE, "No error and buffer still has more data" },
@@ -28,4 +30,6 @@ namespace simdjson::internal {
{ INVALID_URI_FRAGMENT, "Invalid URI fragment syntax." },
{ UNEXPECTED_ERROR, "Unexpected error, consider reporting this problem as you may have found a bug in simdjson" }
}; // error_messages[]
}
} // namespace internal
} // namespace simdjson