mirror of
https://github.com/boostorg/function.git
synced 2025-07-29 12:27:15 +02:00
Remove return statement from operator new to see who screams about it
[SVN r19178]
This commit is contained in:
@ -25,7 +25,6 @@ struct stateless_integer_add {
|
|||||||
{
|
{
|
||||||
static int foo = 5;
|
static int foo = 5;
|
||||||
throw std::runtime_error("Cannot allocate a stateless_integer_add");
|
throw std::runtime_error("Cannot allocate a stateless_integer_add");
|
||||||
return &foo; // suppress warnings
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void operator delete(void*, stateless_integer_add*) throw()
|
void operator delete(void*, stateless_integer_add*) throw()
|
||||||
|
Reference in New Issue
Block a user