Still get same errors even after comment out following lines that the
possibility of _1 error could be excluded.
-------------
#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) << " " );
}
---------------
thanks,
sun
-----Original Message-----
From: boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org] On Behalf Of Bruce Trask
Sent: Wednesday, July 23, 2008 1:33 PM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] please help : Error: Unexpected type name
it's already in the code .
Understood. I am advocating that you fully qualify the _1 at the call
site as you might be running afoul of a clash with some other _1s.
Sun, Xiuxin wrote:
HI Bruce ,
it's already in the code .
using namespace boost::lambda;
typedef std::istream_iterator<int> in;
std::for_each(
in(std::cin), in(), std::cout << (_1 * 3) << " " ); }