Revert "Add virtual destructor to BasicStringView."
continuous-integration/drone/push Build is passing

This reverts commit 94fec63c
This commit is contained in:
Deukhoofd committed 2020-06-26 16:20:46 +02:00
1 parent 94fec63c1b
commit 57f2d15723
2 files changed
+1 -3

No files matched your search

-2
View File
@@ -11,8 +11,6 @@ namespace ArbUt {
constexpr BasicStringView(size_t length, uint32_t hash) : _length(length), _hash(hash) {}
public:
virtual ~BasicStringView() = default;
[[nodiscard]] inline constexpr size_t Length() const noexcept { return _length; }
[[nodiscard]] inline constexpr uint32_t GetHash() const noexcept { return _hash; }
[[nodiscard]] inline constexpr std::size_t operator()(BasicStringView const& s) const noexcept { return _hash; }
+1 -1
View File
@@ -77,7 +77,7 @@ namespace ArbUt {
return *this;
}
~StringView() noexcept override { _str->RemoveReference(); }
~StringView() noexcept { _str->RemoveReference(); }
[[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(); }