From: "David Abrahams" <[EMAIL PROTECTED]> > > Here's what I think might be a correct implementation: > > template <class T, class U> T implicit_cast(U const& x) { return x; } > template <class T, class U> T implicit_cast(U& x) { return x; }
The correct implementation IIRC is template<class T> T implicit_cast(typename identity<T>::type x) { return x; } _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost