/* Copyright (C) 2011 John Maddock * * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) */ // // Verify that if malloc/free are macros that everything still works OK: // #include #include #include #include #include #include #include #include #include namespace std{ void* undefined_poisoned_symbol1(unsigned x); void undefined_poisoned_symbol2(void* x); } #define malloc(x) undefined_poisoned_symbol1(x) #define free(x) undefined_poisoned_symbol2(x) #include #include #include #include template class boost::object_pool; template class boost::object_pool; template class boost::pool; template class boost::pool; template class boost::pool_allocator; template class boost::pool_allocator; template class boost::fast_pool_allocator; template class boost::fast_pool_allocator; template class boost::simple_segregated_storage; template class boost::singleton_pool;