aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-11-08 10:56:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-11-08 10:56:15 +0200
commit983bdf3dd434fd60dfdfa0fe1fda5761b57b4519 (patch)
treeda1225c06f8f34ed14c9e6c29e01d3cd3f76ecc4
parentb99c6823a7f35b2914d52fdd435488ce2f40872a (diff)
Add missing noexcept qualification in path.hxx
-rw-r--r--libbutl/path.hxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/libbutl/path.hxx b/libbutl/path.hxx
index b3be75a..70c15d4 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;