Boost logo

Boost :

From: Eric Niebler (neric_at_[hidden])
Date: 2003-03-20 17:17:16


It's not a compiler thing. Look at the implementation:

http://www.boost.org/boost/detail/call_traits.hpp

template <typename T>
struct call_traits<T&>
{
   typedef T& value_type; // <-- problem here
   typedef T& reference;
   typedef const T& const_reference;
   typedef T& param_type; // hh removed const
};

Thanks,
Eric

"Rozental, Gennadiy" <gennadiy.rozental_at_[hidden]> wrote in message
news:1373D6342FA1D4119A5100E029437F6405E1F950_at_clifford.devo.ilx.com...
> > The way call_traits is currently implemented,
> > call_traits<int&>::value_type
> > is an int&, not an int.
>
> Maybe it's due to lack of partial specialization. What compiler are you
> using?
> Without PTS y oucould not deduce int from int&.
>
> Gennadiy.
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>


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