aix下,stl问题
keym_map.insert(pair <string, STRU_KEYM> (strKey, pstru_keym));
代码就这一行,用的stl map,报了错误,修改无效,请教高手
编译环境AIX xlC stl map
"mapopt.cpp", line 45.21: 1540-0218 (S) The call does not match any parameter list for "pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>".
"/usr/vacpp/include/utility", line 70.9: 1540-1283 (I) "std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair()" is not a viable candidate.
"mapopt.cpp", line 45.21: 1540-0215 (I) The wrong number of arguments have been specified for "std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair()".
"/usr/vacpp/include/utility", line 72.9: 1540-1283 (I) "std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &, const stru_keym &)" is not a viable candidate.
"mapopt.cpp", line 45.55: 1540-0256 (I) A parameter of type "const stru_keym &" cannot be initialized with an expression of type "STRU_KEYM *".
"/usr/vacpp/include/utility", line 75.17: 1540-1283 (I) "template std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair(const pair<_U1,_U2> &)" is not a viable candidate.
代码就这一行,用的stl map,报了错误,修改无效,请教高手
编译环境AIX xlC stl map
"mapopt.cpp", line 45.21: 1540-0218 (S) The call does not match any parameter list for "pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>".
"/usr/vacpp/include/utility", line 70.9: 1540-1283 (I) "std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair()" is not a viable candidate.
"mapopt.cpp", line 45.21: 1540-0215 (I) The wrong number of arguments have been specified for "std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair()".
"/usr/vacpp/include/utility", line 72.9: 1540-1283 (I) "std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &, const stru_keym &)" is not a viable candidate.
"mapopt.cpp", line 45.55: 1540-0256 (I) A parameter of type "const stru_keym &" cannot be initialized with an expression of type "STRU_KEYM *".
"/usr/vacpp/include/utility", line 75.17: 1540-1283 (I) "template std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,stru_keym>::pair(const pair<_U1,_U2> &)" is not a viable candidate.
...全文
相关推荐
XLC AIX编译器
此外,对于C++开发者来说,该编译器也支持C++标准模板库(STL),增强了程序的可读性和可维护性。##### 2.
VisualAge C++ for AIX Compiler Reference 编译器 参考
正确的管理共享和私有变量可以避免数据竞争和死锁问题,提高程序的稳定性和效率。
GCC 及依赖包 for AIX 7.1
接着,libstdcplusplus-6.3.0-1.aix7.1.ppc.rpm是C++标准库,提供了C++编程所需的基本功能,如STL(Standard Template Library),包括容器
qt培训简单入门培训
### Qt培训简单入门知识点#### 一、Qt简介与特点- **Qt平台与STL兼容性**:Qt是一款跨平台的应用程序开发框架,它在设计时充分考虑了与标准模板库(STL)的兼容性,使得开发者可以充分利用
_aix.rar_Work It_aix
本文介绍了STL内部使用的多种内存分配器,包括__debug_alloc、__malloc_alloc和__new_alloc等。这些类通过添加头部和尾部信息实现内存调试功能,确保内存访问的安全性和完


