Add implicit util::hstring(const char*) constructor
This commit is contained in:
parent
119a323b72
commit
c18a8ba2c5
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,10 @@ namespace psemek::util
|
||||||
: view_(view)
|
: view_(view)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
hstring(char const * str)
|
||||||
|
: view_(str)
|
||||||
|
{}
|
||||||
|
|
||||||
hstring(hstring const & other)
|
hstring(hstring const & other)
|
||||||
: string_(other.string_)
|
: string_(other.string_)
|
||||||
, view_(other.owns() ? std::string_view(string_) : other.view_)
|
, view_(other.owns() ? std::string_view(string_) : other.view_)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue