mirror of
https://github.com/boostorg/function.git
synced 2025-07-29 04:17:15 +02:00
Fixed broken testcases that came from tutorial sample code
[SVN r16935]
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
struct stateless_integer_add {
|
||||
int operator()(int x, int y) const { return x+y; }
|
||||
|
||||
void* operator new(std::size_t, stateless_integer_add*)
|
||||
void* operator new(std::size_t, stateless_integer_add*) throw()
|
||||
{
|
||||
throw std::runtime_error("Cannot allocate a stateless_integer_add");
|
||||
return 0; // suppress warnings
|
||||
|
Reference in New Issue
Block a user