mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-22 12:30:04 +00:00
skip ci
ci skip update another string_view issue
This commit is contained in:
parent
acad8b1a61
commit
26a066ad07
@ -1,5 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
enable_testing()
|
||||
if("${CMAKE_VERSION}" VERSION_GREATER 3.1)
|
||||
project(toml11 VERSION 3.2.0)
|
||||
else()
|
||||
project(toml11)
|
||||
|
||||
project(toml11 VERSION 3.7.0)
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
#if __has_include(<string_view>)
|
||||
#define TOML11_USING_STRING_VIEW 1
|
||||
#include <string_view>
|
||||
#endif
|
||||
#endif
|
||||
@ -53,7 +54,7 @@ struct string
|
||||
string& operator+=(const std::string& rhs) {str += rhs; return *this;}
|
||||
string& operator+=(const string& rhs) {str += rhs.str; return *this;}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
#if defined(TOML11_USING_STRING_VIEW) && TOML11_USING_STRING_VIEW>0
|
||||
explicit string(std::string_view s): kind(string_t::basic), str(s){}
|
||||
string(std::string_view s, string_t k): kind(k), str(s){}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user