
13 Aug
2004
13 Aug
'04
8 a.m.
Jonathan Wakely wrote:
On Thu, Aug 12, 2004 at 06:36:32PM +0200, Markus Sch?pflin wrote:
class fixed_mapping { typedef ... elem_type;
struct p1 : public ... { bool operator()(elem_type const &x, ...) { ... } } };
My compiler complains that elem_type is inaccessible in the definition of operator() and I think it is right to complain.
There's a defect report about this. The proposed resolution says that nested classes should have the same access rights as member functions, but it hasn't been approved yet IIRC.
But hat still means that currently boost.test needs to be fixed, right?
I think g++ implements the proposed resolution already.
cxx accepts the code also, but not in strict_ansi mode. :-) Markus