boost库中的fast_pool_allocator能导致内存泄露

boost库中的fast_pool_allocator会导致内存泄露
VS2012下boost_1_55_0

如下方式申明一个变量:
std::vector<int, boost::fast_pool_allocator<int> > vec;


不对vec进行任何操作,程序结束后会显示:

Detected memory leaks!
Dumping objects ->
{735} normal block at 0x006E3C30, 264 bytes long.
 Data: <8<n     @<n     > 38 3C 6E 00 00 00 00 00 40 3C 6E 00 CD CD CD CD 
Object dump complete.

但如果不用boost提供的分配器,写成
std::vector<int> vec;
就不会内存泄露


这难道是boost库的问题还是?
------解决思路----------------------
引用:
Quote: 引用:

Quote: 引用:

Quote: 引用:

文档里有说明啊
引用
The underlying singleton_pool used by the this allocator constructs a pool instance that is never freed. This means that memory allocated by the allocator can be still used after main() has completed, but may mean that some memory checking programs will complain about leaks.


我没具体研究,也就是要自己释放吗?要怎么写?

好像是没法释放的



你说的文档是什么?可以发下链接?

boost目录里的html文档,在线的应该是这个:
http://www.boost.org/doc/libs/1_57_0/libs/pool/doc/html/boost/fast_pool_allocator.html