2
0
mirror of https://github.com/boostorg/uuid.git synced 2026-01-19 04:42:16 +00:00

Mark uuid constructors noexcept

This commit is contained in:
Peter Dimov
2024-09-22 21:22:36 +03:00
parent 208c2d012a
commit d90e14f1dd

View File

@@ -115,14 +115,14 @@ public:
#if defined(BOOST_NO_CXX14_CONSTEXPR)
uuid( repr_type const& r )
uuid( repr_type const& r ) noexcept
{
std::memcpy( data, r, 16 );
}
#elif defined(BOOST_UUID_HAS_BUILTIN_ISCONSTEVAL)
constexpr uuid( repr_type const& r )
constexpr uuid( repr_type const& r ) noexcept
{
if( __builtin_is_constant_evaluated() )
{
@@ -136,7 +136,7 @@ public:
#else
constexpr uuid( repr_type const& r )
constexpr uuid( repr_type const& r ) noexcept
{
for( int i = 0; i < 16; ++i ) data[ i ] = r[ i ];
}