boost::array and operator< on private type (which is a pair) for using std algos
2 Apr
2009
2 Apr
'09
3:36 p.m.
Hello, I'm not sure this is specific about boost::array... I apologize if it is not boost specific. I have this code http://codepad.org/h9uFoI1I This compiles under g++4.0 1. I find it strange that it does given that EntryType is a __private__ type inside C<T1,T2>. 2. It doesn't do what I expect: my operator< is defined in std namespace but is never called (i did this because with std::pair comes < operators frm the std namespace) I don't want to define operator< for all pairs, just for contexts (member functions of C) which use EntryType. Is this because I typedef EntryType? rds,
5650
Age (days ago)
5650
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hicham Mouline