mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 19:10:11 +08:00
[ci skip] use a policy in the CMakeLists.txt for toml11 fix some more string_view errors
This commit is contained in:
@@ -624,7 +624,7 @@ class basic_value
|
||||
assigner(this->string_, toml::string(std::string(s), kind));
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
#if defined(TOML11_USING_STRING_VIEW) && TOML11_USING_STRING_VIEW>0
|
||||
basic_value(std::string_view s)
|
||||
: type_(value_t::string),
|
||||
region_info_(std::make_shared<region_base>(region_base{}))
|
||||
|
Reference in New Issue
Block a user