mirror of
https://github.com/boostorg/function.git
synced 2025-07-17 14:42:10 +02:00
Get rid of a warning in GCC 3.3.
[SVN r19069]
This commit is contained in:
@ -23,8 +23,9 @@ struct stateless_integer_add {
|
|||||||
|
|
||||||
void* operator new(std::size_t, stateless_integer_add*)
|
void* operator new(std::size_t, stateless_integer_add*)
|
||||||
{
|
{
|
||||||
|
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 0; // suppress warnings
|
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