diff --git a/include/boost/uuid/uuid.hpp b/include/boost/uuid/uuid.hpp index 42d63ad5..ab90fc65 100644 --- a/include/boost/uuid/uuid.hpp +++ b/include/boost/uuid/uuid.hpp @@ -47,8 +47,16 @@ struct uuid union { +#if BOOST_WORKAROUND(BOOST_MSVC, < 1910) + + std::uint8_t repr_[ 16 ] = {}; + +#else + std::uint8_t repr_[ 16 ]; +#endif + #if !defined(BOOST_UUID_DISABLE_ALIGNMENT) std::uint64_t align_u64_; @@ -83,8 +91,16 @@ struct uuid // data +#if BOOST_WORKAROUND(BOOST_MSVC, < 1910) + + data_type data; + +#else + data_type data = {}; +#endif + public: // constructors