aboutsummaryrefslogtreecommitdiff
path: root/butl/path
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-12 15:56:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-12 15:56:08 +0200
commita6898daed9df0ab4fc7cbb3336fe7383fc4774e9 (patch)
treed1bf54507bbf7eeb07a50801a5fb2a4079e47b73 /butl/path
parentb490a93a7a42aa14f0a3e53cfb668666bef82844 (diff)
Make basic_path no-init() constructor protected rather than private
Diffstat (limited to 'butl/path')
-rw-r--r--butl/path13
1 files changed, 7 insertions, 6 deletions
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 <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.