Skip to content

Commit 6e86a49

Browse files
committed
vc7.01 alpha workaround
[SVN r13599]
1 parent 94cfe30 commit 6e86a49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/boost/python/converter/implicit.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ struct implicit
3737
registration->construct(obj, &intermediate_data.stage1);
3838

3939
void* storage = ((rvalue_base_data<Target>*)data)->storage.bytes;
40+
# if !defined(BOOST_MSVC) || _MSC_FULL_VER != 13012108 // vc7.01 alpha workaround
4041
new (storage) Target(*static_cast<Source*>(intermediate_data.stage1.convertible));
42+
# else
43+
Target x(*static_cast<Source*>(intermediate_data.stage1.convertible));
44+
new (storage) Target(x);
45+
# endif
4146

4247
// record successful construction
4348
data->convertible = storage;

0 commit comments

Comments
 (0)