24 May
2010
24 May
'10
3:16 p.m.
AMDG Ion GaztaƱaga wrote:
This does not seem to work:
template<class T> struct rv_ref { rv_ref(T &t){ ptr = &t; } rv_ref(const T &t){ ptr = &t; }
These constructors need to be explicit. Your code compiles with VC 2010 with this change. In Christ, Steven Watanabe