2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

cxx 6.5 fixes

[SVN r12689]
This commit is contained in:
Dave Abrahams
2002-02-04 14:49:43 +00:00
parent 80f697ef2a
commit 5d30ddac22

View File

@@ -141,9 +141,12 @@ inline typename Generator::result_type
unwind_type(type<U>*p = 0, Generator* = 0)
{
BOOST_STATIC_CONSTANT(int, indirection
= (pointer_ * is_pointer<U>::value)
| (reference_ * is_reference<U>::value)
| (reference_to_pointer_ * is_reference_to_pointer<U>::value));
= (is_pointer<U>::value ? pointer_ : 0)
+ (is_reference_to_pointer<U>::value
? reference_to_pointer_
: is_reference<U>::value
? reference_
: 0));
return unwind_helper2<indirection>::execute((U(*)())0,(Generator*)0);
}