From 2fb372398b1bff26568f82d7cca2215c0d594ce9 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 31 Dec 2022 07:16:39 +0100 Subject: C++20: Remove `constexpr_cxx20` from std::string constructing methods --- include/jau/octets.hpp | 4 ++-- 1 file 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 ); } -- cgit v1.2.3