VS2005 VS2010 error C2039: back_inserter : is not a member of std
2012-07-18 15:37
706 查看
需要#include <iterator>
You probably forgot #include <iterator> in some of your files. That’s where things like
back_insert_iterator are declared.
In the past, you could get away with forgetting that header file, since many of the other standard headers also included it.
VS2010 reorganized the headers for its library implementation to be more standards compliant. As a result, it’s much less forgiving of missing headers, and
<iterator> is a commonly overlooked one.
You probably forgot #include <iterator> in some of your files. That’s where things like
back_insert_iterator are declared.
In the past, you could get away with forgetting that header file, since many of the other standard headers also included it.
VS2010 reorganized the headers for its library implementation to be more standards compliant. As a result, it’s much less forgiving of missing headers, and
<iterator> is a commonly overlooked one.
相关文章推荐
- error C2039: 'min' : is not a member of 'std'
- error C2039: 'bitset' : is not a member of 'std'
- error C2039: 'wstring' : is not a member of 'std'(转)
- ‘numeric_limits’ is not a member of ‘std’
- error: ‘to_string’ is not a member of ‘std’———已解决
- Dev-C++ “to_string is not a member of std” error- 已解决
- 'find_if’ is not a member of ‘std'
- thread is not a member of std 解决方案
- Android NDK编译C++ 'stoi' and 'to_string' is not a member of 'std'
- shared_ptr.hpp(321) : error C2039: 'type_info' : is not a member of 'std' 错误修正
- error C2039: 'SetWindowTextA' : is not a member of 'CString'
- 实战c++中的智能指针unique_ptr系列-- 使用std::unique_ptr代替new operator(错误:‘unique_ptr’ is not a member of ‘std’)
- : error: ‘cout’ is not a member of ‘std’
- 实战c++中的智能指针unique_ptr系列-- 使用std::unique_ptr代替new operator(错误:‘unique_ptr’ is not a member of ‘std’)
- cocos2d-x-2.2.5 Eclipse编译报错 error: 'transform' is not a member of 'std' (IOS没有问题)
- Code blocks error: 'thread' is not a member of 'std'|
- C++出现to_string is not a member of std 或者 to_string was not declared in this scope的解决方法
- vc++ .net std::string is not a member of std
- cocos2dx ant编译'atoi' is not a member of 'std'
- 遇到 'for_each' is not a member of 'std' 的问题