[lambda] Serialising Lmanda functions
7 Oct
2008
7 Oct
'08
3:57 p.m.
Is there a 'standard' solution to this problem? #include <list> #include <iostream> #include "boost/lambda/lambda.hpp" typedef std::list<unsigned> List; std::ostream & operator<<( std::ostream & s, const List & ); int main( ) { using namespace boost::lambda; List my_list; ( std::cout << _1 << "\n" )( my_list ); } The compiler cannot find a match for operator<<() because the operator and the type are defined in different namespaces, but it's really a nuisance! - Rob.
5883
Age (days ago)
5883
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Jones