From 6e86a498ad160bf84c1e80535d017f21c91c8909 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 1 May 2002 02:49:45 +0000 Subject: [PATCH] vc7.01 alpha workaround [SVN r13599] --- include/boost/python/converter/implicit.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/python/converter/implicit.hpp b/include/boost/python/converter/implicit.hpp index 23c2ece5..6a22a3d6 100644 --- a/include/boost/python/converter/implicit.hpp +++ b/include/boost/python/converter/implicit.hpp @@ -37,7 +37,12 @@ struct implicit registration->construct(obj, &intermediate_data.stage1); void* storage = ((rvalue_base_data*)data)->storage.bytes; +# if !defined(BOOST_MSVC) || _MSC_FULL_VER != 13012108 // vc7.01 alpha workaround new (storage) Target(*static_cast(intermediate_data.stage1.convertible)); +# else + Target x(*static_cast(intermediate_data.stage1.convertible)); + new (storage) Target(x); +# endif // record successful construction data->convertible = storage;