由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] 大家看看我这个C++ STL Functor那里写错了
相关主题
用STL map的时候怎么自己定义大小比较的关系请教一个c++ 里functor的问题
C & C++ mixing question容器里边放指针怎么办?
access function static variable对STL的set比较熟悉的进来看看
C++ STL 的问题Question about type conversion (转载)
菜鸟读C++ STL源程序的疑问问个c++的template的问题
STL 一问定义 单链表 数组,会不会很奇怪
一个C++ template的问题function pointer 和 call-back function 有什么区别?
about STL functor and function pointers请教一个boost::bind的问题
相关话题的讨论汇总
话题: std话题: pair话题: struct话题: double话题: int
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
babyfacenan (黑土) 于 (Thu Feb 21 21:03:35 2008) 提到:
想写一个functor来比较2个pair的大小,但是compile有错误, Code Below
===========================================================
error C2664: 'void __cdecl std::sort(struct std::pair *,stru
ct std::pair *,bool (__thiscall *)(struct std::pair le>,struct std::pair))'
ruct std::pair)' to 'bool (__thiscall *)(struct std::pair t,double>,struct std::pair)'
1 (共1页)
进入Programming版参与讨论
相关主题
请教一个boost::bind的问题菜鸟读C++ STL源程序的疑问
呼唤大侠们,我实在不能实现C++泛型的精神。STL 一问
C++ 程序求助一个C++ template的问题
what is the difference?about STL functor and function pointers
用STL map的时候怎么自己定义大小比较的关系请教一个c++ 里functor的问题
C & C++ mixing question容器里边放指针怎么办?
access function static variable对STL的set比较熟悉的进来看看
C++ STL 的问题Question about type conversion (转载)
相关话题的讨论汇总
话题: std话题: pair话题: struct话题: double话题: int