Skip to content

Commit

Permalink
Work around msvc-14.0 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jun 9, 2024
1 parent 12ff5e3 commit a6117a4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions include/boost/uuid/uuid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down Expand Up @@ -83,8 +91,16 @@ struct uuid

// data

#if BOOST_WORKAROUND(BOOST_MSVC, < 1910)

data_type data;

#else

data_type data = {};

#endif

public:

// constructors
Expand Down

0 comments on commit a6117a4

Please sign in to comment.