diff --git a/test/select_holder.cpp b/test/select_holder.cpp index 93d57f11..2a0b1c8c 100644 --- a/test/select_holder.cpp +++ b/test/select_holder.cpp @@ -41,13 +41,10 @@ void assert_same(U* = 0, T* = 0) template void assert_holder(T* = 0, Held* = 0, Holder* = 0) { + typedef typename boost::python::objects::select_holder::type h; assert_same( -#if BOOST_WORKAROUND(__MWERKS__, <= 0x2407) - boost::python::objects::select_holder::execute((Held*)0).get() -#else - boost::python::objects::select_holder::type::get() -#endif - ); + (h*)0 + ); } int test_main(int, char * [])