workaround for gnu g++ bug

This commit is contained in:
Jeff Hill
2002-04-25 20:50:38 +00:00
parent 362709e356
commit 1d6a15594b
5 changed files with 41 additions and 5 deletions
+8 -1
View File
@@ -79,7 +79,14 @@ void netReadNotifyIO::completion ( unsigned type,
# if defined (_MSC_VER) && _MSC_VER <= 1300
void netReadNotifyIO::operator delete ( void * ) // avoid visual c++ 7 bug
{
throw std::logic_error ( "_MSC_VER == 1300 bogus stub called?" );
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
# if __GNUC__==2 && __GNUC_MINOR_<=96
void netReadNotifyIO::operator delete ( void *, size_t ) // avoid gnu g++ bug
{
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
+9 -1
View File
@@ -98,10 +98,18 @@ void netSubscription::completion ( unsigned typeIn,
# if defined (_MSC_VER) && _MSC_VER <= 1300
void netSubscription::operator delete ( void * ) // avoid visual c++ 7 bug
{
throw std::logic_error ( "_MSC_VER == 1300 bogus stub called?" );
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
# if __GNUC__==2 && __GNUC_MINOR_<=96
void netSubscription::operator delete ( void *, size_t ) // avoid gnu g++ bug
{
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
+8 -1
View File
@@ -81,7 +81,14 @@ void netWriteNotifyIO::completion ( unsigned /* type */,
# if defined (_MSC_VER) && _MSC_VER <= 1300
void netWriteNotifyIO::operator delete ( void * ) // avoid visual c++ 7 bug
{
throw std::logic_error ( "_MSC_VER == 1300 bogus stub called?" );
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
# if __GNUC__==2 && __GNUC_MINOR_<=96
void netWriteNotifyIO::operator delete ( void *, size_t ) // avoid gnu g++ bug
{
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
+8 -1
View File
@@ -121,7 +121,14 @@ void syncGroupReadNotify::operator delete ( void *pCadaver,
# if defined (_MSC_VER) && _MSC_VER <= 1300
void syncGroupReadNotify::operator delete ( void * ) // avoid visual c++ 7 bug
{
throw std::logic_error ( "_MSC_VER == 1300 bogus stub called?" );
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
# if __GNUC__==2 && __GNUC_MINOR_<=96
void syncGroupReadNotify::operator delete ( void *, size_t ) // avoid gnu g++ bug
{
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
+8 -1
View File
@@ -116,7 +116,14 @@ void syncGroupWriteNotify::operator delete ( void *pCadaver,
# if defined (_MSC_VER) && _MSC_VER <= 1300
void syncGroupWriteNotify::operator delete ( void * ) // avoid visual c++ 7 bug
{
throw std::logic_error ( "_MSC_VER == 1300 bogus stub called?" );
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
# if __GNUC__==2 && __GNUC_MINOR_<=96
void syncGroupWriteNotify::operator delete ( void *, size_t ) // avoid gnu g++ bug
{
throw std::logic_error ( "bogus operator delete called?" );
}
# endif