|
Boost Users : |
From: boost (yg-boost-users_at_[hidden])
Date: 2002-06-24 12:57:21
The syntax I am using for accessing object members is really very obtuse:
struct X
{int i;
};
vector<X> vec_X;
...
std::sort(vec_X.begin(), vec_X.end(), &_1->*&X::i < &_2->*&X::i )
^^^^^^^^^^^^^^^^^^^^^^^^^^^
This must be a worthwhile basis for an entry into the obsfucated c++
context!
Is the syntax required because the . operator cannot be overloaded?
Leo
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net