|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-04-12 20:05:57
"Thorsten Ottosen" <nesotto_at_[hidden]> wrote in message
news:c5fdhk$f2n$1_at_sea.gmane.org...
[snip]
Doh!
> vector<int> vec();
>
> my_copy( my_sort( my_unique( vec() ) ), ostream_iterator<int>( cout ) );
my_copy( my_sort( BOOST_LVALUE( my_unique( BOOST_LVALUE( vec() ) ) ) ),
ostream_iterator<int>( cout ) );
> instead of
>
> vector<int> temp1( vec() );
> vector<int> temp2( my_unique( temp1 ) );
> my_copy( my_sort( temp2 ), .... )
br
Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk