Skip to content

Commit

Permalink
Mark the url_search_params move ctor conditionally noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Nov 13, 2023
1 parent 13c843e commit 63e7011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/upa/url_search_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ class url_search_params
/// using move semantics.
///
/// @param[in,out] other @c url_search_params object to move from
url_search_params(url_search_params&& other);
url_search_params(url_search_params&& other)
noexcept(std::is_nothrow_move_constructible<name_value_list>::value);

/// @brief Parsing constructor.
///
Expand Down Expand Up @@ -446,6 +447,7 @@ inline url_search_params::url_search_params(const url_search_params& other)
// Move constructor

inline url_search_params::url_search_params(url_search_params&& other)
noexcept(std::is_nothrow_move_constructible<name_value_list>::value)
: params_(std::move(other.params_))
, is_sorted_(other.is_sorted_)
{}
Expand Down

0 comments on commit 63e7011

Please sign in to comment.