ci skip

update another string_view issue
This commit is contained in:
Philip Top 2019-12-19 12:40:22 -08:00 committed by Philip Top
parent acad8b1a61
commit 26a066ad07
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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){}