
On Mon, Apr 23, 2012 at 4:34 PM, Robert Dailey <rcdailey.lists@gmail.com>wrote:
On Mon, Apr 23, 2012 at 4:25 PM, Nathan Ridge <zeratul976@hotmail.com>wrote:
I can't use phoenix, I'm still on boost 1.46.1.
Phoenix is present in boost 1.46, in a subdirectory of Spirit.
Oh thanks. What namespace is it in? I tried boost::spirit::phoenix, and boost::phoenix... nothing works.
Looks like the namespace is just 'phoenix'. There is no phoenix::placeholders namespace in 1.46 apparently, I'm including <boost/spirit/include/phoenix1.hpp>. I hope that's right. My code still isn't working: std::find_if( mystrings.begin(), mystrings.end(), bind(&Tuple::get<0>, arg1) == error_code ); I changed _1 to arg1 per the documentation (argN seems to be the phoenix-way). I only have a 'using namespace phoenix;' above that.