From d90e14f1dd6de90e902ad1dc7636a23bfb795d2b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 22 Sep 2024 21:22:36 +0300 Subject: [PATCH] Mark uuid constructors noexcept --- include/boost/uuid/uuid.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/uuid/uuid.hpp b/include/boost/uuid/uuid.hpp index 2046281..b5513ad 100644 --- a/include/boost/uuid/uuid.hpp +++ b/include/boost/uuid/uuid.hpp @@ -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 ]; }