Adjust conditions for C++20 for g++
This commit is contained in:
parent
c61a1784ec
commit
27e9761f63
|
@ -194,11 +194,11 @@ Container splitStringSimple(const typename Container::value_type &string, const
|
|||
if (delimPos == Container::value_type::npos) {
|
||||
delimPos = string.size();
|
||||
}
|
||||
#if __cplusplus >= 202002
|
||||
#if __cplusplus >= 201709
|
||||
if constexpr (requires { res.emplace_back(string); }) {
|
||||
#endif
|
||||
res.emplace_back(string.substr(i, delimPos - i));
|
||||
#if __cplusplus >= 202002
|
||||
#if __cplusplus >= 201709
|
||||
} else {
|
||||
res.emplace(string.substr(i, delimPos - i));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue