mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
work around Visual C++ 7.1 internal compiler error
[SVN r39302]
This commit is contained in:
parent
55f3c351a3
commit
01e91a3799
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user