mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-01-10 01:20:06 +00:00
ci: add utf-8 option to MSVC
This commit is contained in:
parent
8c2560761b
commit
84fb703e04
@ -38,7 +38,8 @@ else()
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
add_definitions("/Zc:__cplusplus")
|
||||
add_definitions("/Zc:__cplusplus") # define __cplusplus value correctly
|
||||
add_definitions("/utf-8") # enable to use u8"" literal
|
||||
endif()
|
||||
|
||||
# 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 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(v2.is_string());
|
||||
BOOST_TEST(v3.is_string());
|
||||
|
Loading…
Reference in New Issue
Block a user