diff --git a/src/ConstString.cpp b/src/ConstString.cpp deleted file mode 100644 index 1880fe0..0000000 --- a/src/ConstString.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "ConstString.hpp" diff --git a/src/ConstString.hpp b/src/ConstString.hpp index b2ea282..68c415b 100644 --- a/src/ConstString.hpp +++ b/src/ConstString.hpp @@ -20,14 +20,14 @@ namespace Arbutils { public: constexpr explicit ConstString(const char* str) : _str(str), _length(Length(str)), _hash(Hash(str)){}; - [[nodiscard]] constexpr const char* c_str() const noexcept { return _str; } - [[nodiscard]] std::string std_str() const { return std::string(_str, _length); } + [[nodiscard]] inline constexpr const char* c_str() const noexcept { return _str; } + [[nodiscard]] inline std::string std_str() const { return std::string(_str, _length); } - [[nodiscard]] constexpr size_t Length() const noexcept { return _length; } + [[nodiscard]] inline constexpr size_t Length() const noexcept { return _length; } - [[nodiscard]] constexpr uint32_t GetHash() const noexcept { return _hash; } + [[nodiscard]] inline constexpr uint32_t GetHash() const noexcept { return _hash; } }; - constexpr ConstString operator"" _const(const char* c) { return ConstString(c); } + inline constexpr ConstString operator"" _const(const char* c) { return ConstString(c); } } #endif // ARBUTILS_CONSTSTRING_HPP