$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2004-08-13 03:00:05
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