diff options
Diffstat (limited to 'butl/path')
-rw-r--r-- | butl/path | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -559,6 +559,13 @@ namespace butl string_type posix_string () const; + protected: + basic_path (string_type s, bool i): base_type (std::move (s)) + { + if (i) + init (this->path_); + } + private: template <class P, class C1, class K1> friend P butl::path_cast (const basic_path<C1, K1>&); @@ -566,12 +573,6 @@ namespace butl template <class P, class C1, class K1> friend P butl::path_cast (basic_path<C1, K1>&&); - basic_path (string_type s, bool i): base_type (std::move (s)) - { - if (i) - init (this->path_); - } - // If exact is true, return whether the initialization was // successful, that is, the passed string is a valid path // and no modifications were necessary. |