1
0
forked from boostorg/bind

Temporarily disabled void returns on MSVC 6 to address internal compiler errors.

[SVN r11810]
This commit is contained in:
Peter Dimov
2001-11-29 17:29:31 +00:00
parent 00df4fc3bb
commit e1b4cd5dcf
2 changed files with 11 additions and 1 deletions

View File

@@ -377,6 +377,11 @@ void member_function_test()
void member_function_void_test() void member_function_void_test()
{ {
// mem_fn void returns are temporarily disabled on MSVC 6
// they cause internal compiler errors with debug info turned on
#if !defined(BOOST_MSVC) || (BOOST_MSVC > 1200)
using namespace boost; using namespace boost;
V v; V v;
@@ -463,6 +468,8 @@ void member_function_void_test()
bind(&V::g8, ref(v), 1, 2, 3, 4, 5, 6, 7, 8)(); bind(&V::g8, ref(v), 1, 2, 3, 4, 5, 6, 7, 8)();
BOOST_TEST( v.hash == 23558 ); BOOST_TEST( v.hash == 23558 );
#endif
} }
void nested_bind_test() void nested_bind_test()

View File

@@ -41,7 +41,10 @@ template<class T> T * get_pointer(shared_ptr<T> const & p)
return p.get(); return p.get();
} }
#ifdef BOOST_NO_VOID_RETURNS // Void return workaround temporarily disabled on MSVC 6
// causes internal compiler errors with debug info enabled
#if defined(BOOST_NO_VOID_RETURNS) && !defined(BOOST_MSVC)
namespace _mfi // mem_fun_impl namespace _mfi // mem_fun_impl
{ {