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:
Niels Dekker 2007-09-16 09:33:34 +00:00
parent 01e91a3799
commit 3bb2568fad

View File

@ -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
{