aboutsummaryrefslogtreecommitdiff
path: root/butl/path
diff options
context:
space:
mode:
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.