mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
Visual C++ 7.1 ICE workaround by Ralf W. Grosse-Kunstleve added to ~const_T_base() as well. See also Boost Developers mailing list, subject "utility/value_init.hpp: VC 7.1 ICE & workaround"
[SVN r39308]
This commit is contained in:
parent
01e91a3799
commit
3bb2568fad
@ -46,7 +46,11 @@ class const_T_base
|
||||
new (&x) T();
|
||||
}
|
||||
|
||||
~const_T_base() { get().T::~T(); }
|
||||
~const_T_base()
|
||||
{
|
||||
void const * ptr = &x;
|
||||
static_cast<T*>(ptr)->T::~T();
|
||||
}
|
||||
|
||||
T & get() const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user