Boost logo

Boost Users :

Subject: [Boost-users] What's the execution sequence of phoenix::lambda function?
From: 饭桶 (arthur.wang2_at_[hidden])
Date: 2012-01-15 09:07:02

I'm a newbie for boost phoenix, I wrote a small piece of code but it
totally confuses me about the execution sequence, you can check the code

std::vector<int> v;



The first output is "ab" but the second output is "dbca".

It seams ph::for_each is lazy evaluate , but what is the correct one to
make it execute from left to right?


半亩薄田一头牛 老婆孩子热炕头

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at