
5 Jan
2011
5 Jan
'11
4:05 p.m.
I might be asking for the impossible here, but given the lovely adaptor syntax, eg std::vector<int> vec; boost::copy( vec | boost::adaptors::reversed | boost::adaptors::uniqued, std::ostream_iterator<int>(std::cout) ); I notice it still uses the function call notation in the outermost operation( boost::copy() ), can it be written to eliminate function call syntax completely, say something like vec | boost::adaptors::reversed | boost::adaptors::uniqued | boost::adaptors::copy( std::ostream_iterator<int>(std::cout) ); or even vec | boost::adaptors::reversed | boost::adaptors::uniqued | std::ostream_iterator<int>(std::cout); Thx, - Rob.