
23 May
2010
23 May
'10
7:26 p.m.
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