/* Copyright (C) 2011 Kwan Ting Chan * * 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) */ // Test of bug #4346 (https://svn.boost.org/trac/boost/ticket/4346) #ifdef _MSC_VER #define _CRTDBG_MAP_ALLOC #include #include #endif #include #include #include #include #include #include #include struct Foo {}; int main() { { boost::pool<> p(sizeof(int)); (p.malloc)(); } { boost::object_pool p; (p.malloc)(); } { (boost::singleton_pool::malloc)(); } boost::singleton_pool::purge_memory(); { std::vector > v; v.push_back(8); } boost::singleton_pool::release_memory(); }