Boost logo

Boost :

From: rogeeff (rogeeff_at_[hidden])
Date: 2002-02-12 12:59:39


--- In boost_at_y..., "David Abrahams" <david.abrahams_at_r...> wrote:

[...]
> > Other compilers give me other errors. It seems that the root
> > problem is that pointer_to_unary function incorrectly define
> > result_type. While all others functors that returns reference
(like
> > identity, select1st,select2nd ) define result_type as T if
operator()
> > returns T const&, pointer_to_unary_function automatically
propogate
> > result type inherited from its argument, i.e. result_type is
defined
> > like T const&.
>
> That's a known issue with some of the standard adaptors. We could
adjust for
> it by stripping the reference from the type, but unfortunately
since you're
> using MSVC that wouldn't help you.
>

That exactly what I meant we neeed to do. Though it would not work
without partial specialization it still could be very useful. I think
that boost should provide a generic solutions for this kind of
problems.
 
[...]
> -Dave

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk