From f135ee19925f5e1afffcf20366f9056f88d866e9 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 28 Dec 2019 14:36:08 +0100 Subject: new_type: add conversion tests --- include/newtype/new_type.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 { 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 { return m_value; } -- cgit v1.2.3