mirror of
https://github.com/boostorg/thread.git
synced 2026-01-26 07:02:12 +00:00
Take in account possible issue while initializing cout. #12013
This commit is contained in:
@@ -33,7 +33,7 @@ inline void* operator new(std::size_t s)
|
||||
void* operator new(std::size_t s) throw (std::bad_alloc)
|
||||
#endif
|
||||
{
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
//std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
if (throw_one == 0) throw std::bad_alloc();
|
||||
--throw_one;
|
||||
return std::malloc(s);
|
||||
@@ -45,7 +45,7 @@ inline void operator delete(void* p)
|
||||
inline void operator delete(void* p) throw ()
|
||||
#endif
|
||||
{
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
//std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
std::free(p);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ void* operator new(std::size_t s)
|
||||
void* operator new(std::size_t s) throw (std::bad_alloc)
|
||||
#endif
|
||||
{
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
//std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
if (throw_one == 0) throw std::bad_alloc();
|
||||
--throw_one;
|
||||
return std::malloc(s);
|
||||
@@ -45,7 +45,7 @@ void operator delete(void* p)
|
||||
void operator delete(void* p) throw ()
|
||||
#endif
|
||||
{
|
||||
std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
//std::cout << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
std::free(p);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user