work around Visual C++ 7.1 internal compiler error

[SVN r39302]
This commit is contained in:
Ralf W. Grosse-Kunstleve 2007-09-15 23:11:50 +00:00
parent 55f3c351a3
commit 01e91a3799

View File

@ -69,7 +69,11 @@ class non_const_T_base
new (&x) T();
}
~non_const_T_base() { get().T::~T(); }
~non_const_T_base()
{
void * ptr = &x;
static_cast<T*>(ptr)->T::~T();
}
T & get() const
{