diff options
author | Sven Gothel <[email protected]> | 2022-12-31 07:16:39 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-12-31 07:16:39 +0100 |
commit | 2fb372398b1bff26568f82d7cca2215c0d594ce9 (patch) | |
tree | 64bbaef4c351948653a00ffcc4b89fb0f8cade0e | |
parent | 138fdad239def95261c36f50c86bf97d63e612d3 (diff) |
C++20: Remove `constexpr_cxx20` from std::string constructing methods
-rw-r--r-- | include/jau/octets.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/jau/octets.hpp b/include/jau/octets.hpp index ea51847..9e75e7f 100644 --- a/include/jau/octets.hpp +++ b/include/jau/octets.hpp @@ -254,12 +254,12 @@ namespace jau { return std::string( (const char*)(_data+i) ); } /** Assumes a null terminated string */ - constexpr_cxx20 std::string get_string_nc(const nsize_t i) const noexcept { + inline std::string get_string_nc(const nsize_t i) const noexcept { return std::string( (const char*)(_data+i) ); } /** Assumes a string with defined length, not necessarily null terminated */ - inline std::string get_string(const nsize_t i, const nsize_t length) const { + std::string get_string(const nsize_t i, const nsize_t length) const { check_range(i, length, E_FILE_LINE); return std::string( (const char*)(_data+i), length ); } |