Boost logo

Boost Users :

Subject: Re: [Boost-users] Simple example program builds but hangs when I run it. (Ubuntu).
From: ilusionoflife (illusion.of.life92_at_[hidden])
Date: 2012-01-24 03:32:40


On Tuesday 24 January 2012 03:43:13 vincegata wrote:
> #include <boost/lambda/lambda.hpp>
> #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) << " " );
> int stop = 1;
> }
It's easy. It reads until end of stdin. Press C-d? Correct behavior to me.
Or I missed somthing and it don't response to you with trippled number?

Best regards, illusionoflife


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net