boost pool_allocator 报错 'rebind'
来源:互联网 发布:mysql数据库价格 编辑:程序博客网 时间:2024/06/04 17:41
#include "stdafx.h"#include <vector>#include <boost/pool/pool.hpp>int _tmain(int argc, _TCHAR* argv[]){std::vector<int, boost::pool_allocator<int>> v;return 0;}
编译报错:
d:\program files\microsoft visual studio 10.0\vc\include\vector(421): error C2903: 'rebind' : symbol is neither a class template nor a function template怀疑是pool_allocator与Vc的STL不兼容。
后来发现是应该使用pool_alloc.hpp头文件才行:
#include <boost/pool/pool_alloc.hpp>
Boost文档仅假定
// Include all of Pool files#include <boost/pool.hpp>
实际上,boost/pool.hpp 不存在。
感叹模板类的编译错误信息太没头绪。
后来发现其中有一行错误:
d:\program files\microsoft visual studio 10.0\vc\include\vector(421): error C2027: use of undefined type 'boost::pool_allocator<T>'
为了这一行错误,总的出错报告接近400行。
- boost pool_allocator 报错 'rebind'
- boost库中singleton_pool和pool_allocator的使用
- Boost的fast_pool_allocator(pool_allocator)没有右值引用版的construct函数
- STL rebind
- Allocator rebind
- g++报错boost问题之generic_category()
- 用到boost时间,编译报错
- pool_allocator源码笔记
- 手把手教你:Boost编译使用报错的解决方法
- 学习boost过程中使用from_string函数报错
- boost log 报错undefined reference to boost::log::v2_mt_posix::basic_formatter
- c++使用boost regex编译报错perl_matcher.hpp:382: undefined reference to `boost::re_detail_106100
- BIND & REBIND in DB2
- allocator::rebind详解
- BIND或REBIND
- allocator之rebind
- STL Allocator rebind
- stl rebind 机制
- InkPresenter 初探
- Step byStep Guide on Creating Physical Standby Using RMAN DUPLICATE
- Pro Android学习笔记(二六):用户界面和控制(14):RelativeLayout
- 1、循环式/迭代式( iterative )服务器
- VC调试入门
- boost pool_allocator 报错 'rebind'
- RandomAccess随机访问文件的小例子
- zookeeper
- Concatenating Row Values in Transact-SQL 非常详细完全的解释和举例
- AT91SAM9260硬件时钟RTC的使用
- HDU 3033 I love sneakers!(DP 背包 每组最小取一个的背包)
- AllWinnerTech A10添加驱动ko模块方法
- MongoDB开发学习(1)开天辟地,经典入门
- 十六进制颜色编码