mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
ci: add utf-8 option to MSVC
This commit is contained in:
@@ -38,7 +38,8 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_definitions("/Zc:__cplusplus")
|
add_definitions("/Zc:__cplusplus") # define __cplusplus value correctly
|
||||||
|
add_definitions("/utf-8") # enable to use u8"" literal
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set some common directories
|
# Set some common directories
|
||||||
|
@@ -264,20 +264,6 @@ BOOST_AUTO_TEST_CASE(test_value_as_u8_literal)
|
|||||||
const toml::value v4 = u8R"('''foo''')"_toml;
|
const toml::value v4 = u8R"('''foo''')"_toml;
|
||||||
const toml::value v5 = u8R"("ひらがな")"_toml;
|
const toml::value v5 = u8R"("ひらがな")"_toml;
|
||||||
|
|
||||||
// XXX
|
|
||||||
#ifndef __cpp_char8_t
|
|
||||||
{
|
|
||||||
const char* l = u8R"(ひらがな)";
|
|
||||||
BOOST_TEST_MESSAGE(l);
|
|
||||||
while(*l != '\0')
|
|
||||||
{
|
|
||||||
const int tmp(*l);
|
|
||||||
BOOST_TEST_MESSAGE(std::hex << tmp);
|
|
||||||
++l;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
BOOST_TEST(v1.is_string());
|
BOOST_TEST(v1.is_string());
|
||||||
BOOST_TEST(v2.is_string());
|
BOOST_TEST(v2.is_string());
|
||||||
BOOST_TEST(v3.is_string());
|
BOOST_TEST(v3.is_string());
|
||||||
|
Reference in New Issue
Block a user