mirror of
https://github.com/boostorg/thread.git
synced 2026-02-09 11:32:12 +00:00
Try to get rid of bad link issue while defining global new.
This commit is contained in:
@@ -28,9 +28,9 @@
|
||||
unsigned throw_one = 0xFFFF;
|
||||
|
||||
#if defined _GLIBCXX_THROW
|
||||
void* operator new(std::size_t s) _GLIBCXX_THROW (std::bad_alloc)
|
||||
inline void* operator new(std::size_t s) _GLIBCXX_THROW (std::bad_alloc)
|
||||
#elif defined BOOST_MSVC
|
||||
void* operator new(std::size_t s)
|
||||
inline void* operator new(std::size_t s)
|
||||
#else
|
||||
void* operator new(std::size_t s) throw (std::bad_alloc)
|
||||
#endif
|
||||
@@ -41,9 +41,9 @@ void* operator new(std::size_t s) throw (std::bad_alloc)
|
||||
}
|
||||
|
||||
#if defined BOOST_MSVC
|
||||
void operator delete(void* p)
|
||||
inline void operator delete(void* p)
|
||||
#else
|
||||
void operator delete(void* p) throw ()
|
||||
inline void operator delete(void* p) throw ()
|
||||
#endif
|
||||
{
|
||||
std::free(p);
|
||||
|
||||
Reference in New Issue
Block a user