Partially undo 6d4b94df13 for MSVC and C++98 compat

This commit is contained in:
Robin Gareus 2019-07-29 04:45:29 +02:00
parent 7b92f54929
commit 82bdb48dab
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -36,7 +36,8 @@ spinlock_t::spinlock_t ()
#else #else
/* default C++ assign struct's first member */ /* default C++ assign struct's first member */
{ {
l = BOOST_DETAIL_SPINLOCK_INIT; boost::detail::spinlock init = BOOST_DETAIL_SPINLOCK_INIT;
std::memcpy (&l, &init, sizeof (init));
} }
#endif #endif