diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-12 15:56:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-12 15:56:08 +0200 |
commit | a6898daed9df0ab4fc7cbb3336fe7383fc4774e9 (patch) | |
tree | d1bf54507bbf7eeb07a50801a5fb2a4079e47b73 /butl/path | |
parent | b490a93a7a42aa14f0a3e53cfb668666bef82844 (diff) |
Make basic_path no-init() constructor protected rather than private
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. |