Add implicit util::hstring(const char*) constructor

This commit is contained in:
Nikita Lisitsa 2024-04-26 13:13:53 +03:00
parent 119a323b72
commit c18a8ba2c5

View file

@ -18,6 +18,10 @@ namespace psemek::util
: view_(view)
{}
hstring(char const * str)
: view_(str)
{}
hstring(hstring const & other)
: string_(other.string_)
, view_(other.owns() ? std::string_view(string_) : other.view_)