Use C++ 17

This commit is contained in:
Martchus 2018-06-26 00:07:59 +02:00
parent c170993392
commit f140c7f436
3 changed files with 6 additions and 3 deletions

View File

@ -12,6 +12,7 @@ set(META_VERSION_MAJOR 0)
set(META_VERSION_MINOR 0)
set(META_VERSION_PATCH 5)
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
set(META_CXX_STANDARD 17)
# set project name for IDEs like Qt Creator
project(${META_PROJECT_NAME})

View File

@ -79,6 +79,8 @@ if(TARGET reflective_rapidjson_generator_tests)
binary
OUTPUT_LISTS
TEST_GENERATED_HEADER_FILES
CLANG_OPTIONS
-std=c++17
CLANG_OPTIONS_FROM_TARGETS
reflective_rapidjson_generator_tests
JSON_CLASSES

View File

@ -152,11 +152,11 @@ public:
void assertTestObject(const TestObjectBinary &deserialized);
private:
vector<byte> m_buffer;
vector<unsigned char> m_buffer;
TestObjectBinary m_testObj;
NestingArrayBinary m_nestedTestObj;
vector<byte> m_expectedTestObj;
vector<byte> m_expectedNestedTestObj;
vector<unsigned char> m_expectedTestObj;
vector<unsigned char> m_expectedNestedTestObj;
};
CPPUNIT_TEST_SUITE_REGISTRATION(BinaryReflectorTests);