Boost logo

Boost Users :

Subject: Re: [Boost-users] [Review] Formal Review: Boost.Move
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-05-23 15:26:49


On 23/05/2010 21:09, Steven Watanabe wrote:
> I'm wondering whether it would be better to
> use something like
>
> template<class T>
> struct rv {
> T* impl;
> operator const T&() const;
> };
>
> template<class T>
> T& unwrap_rv(rv<T>&);
>
> I know the interface isn't quite as nice, and
> there will be more cases where overload resolution
> needs a hand, but it seems safer.

We'll need to experiment a bit, that's why exposing rv<T> was a bit
dangerous IMHO. I don't know if this circular conversion between rv<->T
will be harmful, but we could try it.

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net