diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2019-12-28 14:36:08 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2019-12-28 14:36:08 +0100 |
| commit | f135ee19925f5e1afffcf20366f9056f88d866e9 (patch) | |
| tree | 0b654af3bb5ca47067bd382906babc8376793e6d /include | |
| parent | 03bed6e0dc6959fc06c4cba24b07d7b985b9237c (diff) | |
| download | newtype-f135ee19925f5e1afffcf20366f9056f88d866e9.tar.xz newtype-f135ee19925f5e1afffcf20366f9056f88d866e9.zip | |
new_type: add conversion tests
Diffstat (limited to 'include')
| -rw-r--r-- | include/newtype/new_type.hpp | 4 |
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; } |
