Skip to content

Commit

Permalink
Improve noexcept(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Dec 17, 2023
1 parent dcdc757 commit 4ee63ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tao/pq/parameter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace tao::pq
const T m_value;
const parameter_traits< T > m_traits;

explicit holder( T&& t ) noexcept( noexcept( T( std::move( t ) ), parameter_traits< T >( t ) ) )
explicit holder( T&& t ) noexcept( noexcept( parameter_traits< T >( t ) ) && std::is_nothrow_move_constructible_v< T > )
: m_value( std::move( t ) ),
m_traits( m_value )
{}
Expand Down

0 comments on commit 4ee63ee

Please sign in to comment.