forked from boostorg/optional
Fix MSVC 14.1 compiler crash
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
||||
} ;
|
||||
|
||||
|
Reference in New Issue
Block a user