Fixed broken testcases that came from tutorial sample code

[SVN r16935]
This commit is contained in:
Douglas Gregor
2003-01-19 14:44:34 +00:00
parent 4a46b5e1b9
commit 09657f1134
12 changed files with 26 additions and 25 deletions

View File

@ -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