aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/newtype/new_type.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/newtype/new_type.hpp b/include/newtype/new_type.hpp
index 68a22dd..67e29c3 100644
--- a/include/newtype/new_type.hpp
+++ b/include/newtype/new_type.hpp
@@ -39,7 +39,7 @@ namespace nt
/**
* Retrieve the base type value contained in this @p new_type
*/
- auto constexpr decay() const noexcept -> BaseType
+ auto constexpr decay() const noexcept(std::is_nothrow_copy_constructible_v<BaseType>) -> BaseType
{
return m_value;
}
@@ -75,7 +75,7 @@ namespace nt
/**
* Retrieve the base type value contained in this @p new_type
*/
- auto constexpr decay() const noexcept -> BaseType
+ auto constexpr decay() const noexcept(std::is_nothrow_copy_constructible_v<BaseType>) -> BaseType
{
return m_value;
}