Skip to content
Snippets Groups Projects
Commit 016f2c7b authored by Markus Blatt's avatar Markus Blatt
Browse files

Only check for bad_alloc with -DNDEBUG.

parent f65912c2
No related merge requests found
......@@ -129,8 +129,10 @@ int testPoolAllocator()
try
{
pool2.deallocate(d,1);
#ifndef NDEBUG
++ret;
std::cerr<<"ERROR: allocation should not work with copied allocators."<<std::endl;
std::cerr<<"ERROR: deallocation should not work with copied allocators."<<std::endl;
#endif
}
catch(std::bad_alloc)
{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment