diff options
Diffstat (limited to 'libbutl/path.hxx')
-rw-r--r-- | libbutl/path.hxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/libbutl/path.hxx b/libbutl/path.hxx index b3be75a..b10022a 100644 --- a/libbutl/path.hxx +++ b/libbutl/path.hxx @@ -612,18 +612,18 @@ namespace butl // Constructors. // - path_data () + path_data () noexcept : tsep_ (0) {} - path_data (string_type&& p, difference_type ts) + path_data (string_type&& p, difference_type ts) noexcept : path_ (std::move (p)), tsep_ (path_.empty () ? 0 : ts) {} explicit - path_data (string_type&& p) + path_data (string_type&& p) noexcept : path_ (std::move (p)) { _init (); } void - _init () + _init () noexcept { size_type n (path_.size ()), i; @@ -651,7 +651,8 @@ namespace butl using path_data<C>::path_data; base_type () = default; - base_type (path_data<C>&& d): path_data<C> (std::move (d)) {} + base_type (path_data<C>&& d) noexcept + : path_data<C> (std::move (d)) {} }; using dir_type = basic_path<C, dir_path_kind<C>>; @@ -1278,7 +1279,8 @@ namespace butl // Direct initialization without init()/cast(). // explicit - basic_path (data_type&& d): base_type (std::move (d)) {} + basic_path (data_type&& d) noexcept + : base_type (std::move (d)) {} using base_type::_size; using base_type::_init; @@ -1477,9 +1479,9 @@ namespace butl basic_path_name (): // Create empty/NULL path name. base (nullptr, &name) {} - basic_path_name (basic_path_name&&); + basic_path_name (basic_path_name&&) noexcept; basic_path_name (const basic_path_name&); - basic_path_name& operator= (basic_path_name&&); + basic_path_name& operator= (basic_path_name&&) noexcept; basic_path_name& operator= (const basic_path_name&); }; @@ -1506,9 +1508,9 @@ namespace butl basic_path_name_value (): base (&path) {} // Create empty/NULL path name. - basic_path_name_value (basic_path_name_value&&); + basic_path_name_value (basic_path_name_value&&) noexcept; basic_path_name_value (const basic_path_name_value&); - basic_path_name_value& operator= (basic_path_name_value&&); + basic_path_name_value& operator= (basic_path_name_value&&) noexcept; basic_path_name_value& operator= (const basic_path_name_value&); }; } |