
13 Apr
2004
13 Apr
'04
11:51 a.m.
"Vladimir Prus" <ghost@cs.msu.su> wrote in message news:c5g491$ig4$1@sea.gmane.org...
I wish we can get away from BOOST_LVALUE too. The simple approach of:
template<class T> void sort(T t) {}
template<class T> void sort(T& t) {}
does not really work, since there's ambiguity when passing non-const reference
One is a language change like &&. If we had template<class T> void sort(T t) {} template<class T> void sort(T& t) {} template< class T > void sort( const T& t ) wouldn't it be possible to enable/disable certain combination in certain situaltions, so it would just work ? Anyway, my brain has stopped thinking, so I'll better do some homework. br Thorsten