Fix MSVC 14.1 compiler crash

This commit is contained in:
Andrzej Krzemienski
2024-01-03 22:20:28 +01:00
parent 01e80d2b87
commit 8375df7693
2 changed files with 5 additions and 1059 deletions

File diff suppressed because it is too large Load Diff

View File

@ -60,8 +60,13 @@ class aligned_storage
T * ptr_ref() { return static_cast<T *> (address()); }
#endif
#ifndef BOOST_MSVC // workaround for MSVC 14.1 compiler crash
T const& ref() const { return *boost::core::launder(ptr_ref()); }
T & ref() { return *boost::core::launder(ptr_ref()); }
#else
T const& ref() const { return *ptr_ref(); }
T & ref() { return *ptr_ref(); }
#endif
} ;