Boost logo

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++
Is the syntax required because the . operator cannot be overloaded?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at