23 Jul
2008
23 Jul
'08
1:15 a.m.
HI all, when I try to compile the example code only use boost head-file in SunOS :
#include
#include <iostream> #include <iterator> #include <algorithm> int main() { using namespace boost::lambda; typedef std::istream_iterator<int> in;
std::for_each( in(std::cin), in(), std::cout << (_1 * 3) << " " ); }
I get many errors like 'Unexpected type name', the first one is :
CC -g -I../. -c -o main.o main.C ".././boost/lambda/detail/function_adaptors.hpp", line 203: Error: Unexpected type name "boost::lambda::Arg1" encountered.
could someone give a hand.
sun