From 01e91a37990b8ca93fa83b0a42f80e69fc9e0d90 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sat, 15 Sep 2007 23:11:50 +0000 Subject: [PATCH] work around Visual C++ 7.1 internal compiler error [SVN r39302] --- include/boost/utility/value_init.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/utility/value_init.hpp b/include/boost/utility/value_init.hpp index a564658..adac8bc 100644 --- a/include/boost/utility/value_init.hpp +++ b/include/boost/utility/value_init.hpp @@ -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(ptr)->T::~T(); + } T & get() const {