Add virtual destructor to BasicStringView.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
088f66c385
commit
94fec63c1b
|
@ -11,6 +11,8 @@ namespace ArbUt {
|
||||||
constexpr BasicStringView(size_t length, uint32_t hash) : _length(length), _hash(hash) {}
|
constexpr BasicStringView(size_t length, uint32_t hash) : _length(length), _hash(hash) {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
virtual ~BasicStringView() = default;
|
||||||
|
|
||||||
[[nodiscard]] inline constexpr size_t Length() const noexcept { return _length; }
|
[[nodiscard]] inline constexpr size_t Length() const noexcept { return _length; }
|
||||||
[[nodiscard]] inline constexpr uint32_t GetHash() const noexcept { return _hash; }
|
[[nodiscard]] inline constexpr uint32_t GetHash() const noexcept { return _hash; }
|
||||||
[[nodiscard]] inline constexpr std::size_t operator()(BasicStringView const& s) const noexcept { return _hash; }
|
[[nodiscard]] inline constexpr std::size_t operator()(BasicStringView const& s) const noexcept { return _hash; }
|
||||||
|
|
|
@ -77,7 +77,7 @@ namespace ArbUt {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
~StringView() noexcept { _str->RemoveReference(); }
|
~StringView() noexcept override { _str->RemoveReference(); }
|
||||||
|
|
||||||
[[nodiscard]] inline constexpr const char* c_str() const noexcept override { return _str->GetValue().data(); }
|
[[nodiscard]] inline constexpr const char* c_str() const noexcept override { return _str->GetValue().data(); }
|
||||||
[[nodiscard]] inline std::string_view std_str() const noexcept override { return _str->GetValue(); }
|
[[nodiscard]] inline std::string_view std_str() const noexcept override { return _str->GetValue(); }
|
||||||
|
|
Loading…
Reference in New Issue