Use C++ 17
This commit is contained in:
parent
c170993392
commit
f140c7f436
|
@ -12,6 +12,7 @@ set(META_VERSION_MAJOR 0)
|
||||||
set(META_VERSION_MINOR 0)
|
set(META_VERSION_MINOR 0)
|
||||||
set(META_VERSION_PATCH 5)
|
set(META_VERSION_PATCH 5)
|
||||||
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
|
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
|
# set project name for IDEs like Qt Creator
|
||||||
project(${META_PROJECT_NAME})
|
project(${META_PROJECT_NAME})
|
||||||
|
|
|
@ -79,6 +79,8 @@ if(TARGET reflective_rapidjson_generator_tests)
|
||||||
binary
|
binary
|
||||||
OUTPUT_LISTS
|
OUTPUT_LISTS
|
||||||
TEST_GENERATED_HEADER_FILES
|
TEST_GENERATED_HEADER_FILES
|
||||||
|
CLANG_OPTIONS
|
||||||
|
-std=c++17
|
||||||
CLANG_OPTIONS_FROM_TARGETS
|
CLANG_OPTIONS_FROM_TARGETS
|
||||||
reflective_rapidjson_generator_tests
|
reflective_rapidjson_generator_tests
|
||||||
JSON_CLASSES
|
JSON_CLASSES
|
||||||
|
|
|
@ -152,11 +152,11 @@ public:
|
||||||
void assertTestObject(const TestObjectBinary &deserialized);
|
void assertTestObject(const TestObjectBinary &deserialized);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
vector<byte> m_buffer;
|
vector<unsigned char> m_buffer;
|
||||||
TestObjectBinary m_testObj;
|
TestObjectBinary m_testObj;
|
||||||
NestingArrayBinary m_nestedTestObj;
|
NestingArrayBinary m_nestedTestObj;
|
||||||
vector<byte> m_expectedTestObj;
|
vector<unsigned char> m_expectedTestObj;
|
||||||
vector<byte> m_expectedNestedTestObj;
|
vector<unsigned char> m_expectedNestedTestObj;
|
||||||
};
|
};
|
||||||
|
|
||||||
CPPUNIT_TEST_SUITE_REGISTRATION(BinaryReflectorTests);
|
CPPUNIT_TEST_SUITE_REGISTRATION(BinaryReflectorTests);
|
||||||
|
|
Loading…
Reference in New Issue