ci: add utf-8 option to MSVC

This commit is contained in:
ToruNiina 2020-09-18 23:58:20 +09:00
parent 8c2560761b
commit 84fb703e04
2 changed files with 2 additions and 15 deletions

View File

@ -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

View File

@ -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());