From a6898daed9df0ab4fc7cbb3336fe7383fc4774e9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 12 Apr 2016 15:56:08 +0200 Subject: Make basic_path no-init() constructor protected rather than private --- butl/path | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'butl/path') diff --git a/butl/path b/butl/path index ca94957..07b05ca 100644 --- a/butl/path +++ b/butl/path @@ -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 friend P butl::path_cast (const basic_path&); @@ -566,12 +573,6 @@ namespace butl template friend P butl::path_cast (basic_path&&); - 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. -- cgit v1.1