Monthly Archives: May 2010

How does boost::phoenix work?

The boost::phoenix is simply mysterious – it doesn’t look like C++. for_each(v.begin(), v.end(), if_(arg1 > 5) [ cout << arg1 << ", " ] ); It’s the standard std::for_each. The third parameter is usually a functor but boost::phoenix lets you … Continue reading

Posted in C++ | Leave a comment