|
@ -26,7 +26,7 @@ using namespace std::literals; |
|
|
// Compile-time tests for constexpr on compilers which support C++20 constexpr std::string
|
|
|
// Compile-time tests for constexpr on compilers which support C++20 constexpr std::string
|
|
|
#ifdef __cpp_lib_constexpr_string |
|
|
#ifdef __cpp_lib_constexpr_string |
|
|
constexpr std::string cpp_constexpr(std::string_view in_expression) { |
|
|
constexpr std::string cpp_constexpr(std::string_view in_expression) { |
|
|
std::string result{ in_expression }; |
|
|
std::string result{ static_cast<std::string>(in_expression) }; |
|
|
jessilib::apply_cpp_escape_sequences(result); |
|
|
jessilib::apply_cpp_escape_sequences(result); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|