id summary reporter owner description type status milestone component version severity resolution keywords cc 9291 can not compile sink->set_filter(phoenix::bind(&my_filter, ... Johan Lundberg Andrey Semashev "The line sink->set_filter(phoenix::bind(&my_filter, severity, tag_attr)) from the documentation, here: http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/tutorial/advanced_filtering.html fails to compile. *How to reproduce* Find this tutorial (linked from the doc above): http://www.boost.org/doc/libs/1_54_0/libs/log/example/doc/tutorial_filtering.cpp Then change '#if 0' to '#if 1' to activate that part of the tutorial and comment out the other definition of init(). I get errors related to phoenix bind on line 155: sink->set_filter(phoenix::bind(&my_filter, severity, tag_attr)); I can't judge if this is a problem with boost log itself or the documentation/tutorial. I used boost 1.54 and tried gcc 4.7.2 and 4.8.1, and tried both c++11 and c++98 mode with the same result. * Details on the compilation error: I think this is the relevant part of the error message: /myboost154/include/boost/phoenix/core/preprocessed/expression_10.hpp:140:17: error: could not convert ‘boost::proto::make_expr&, const boost::log::v2_mt_posix::value_ref >&)>, boost::log::v2_mt_posix::expressions::attribute_keyword, boost::log::v2_mt_posix::expressions::attribute_keyword >((* & a0), (* & a1), (* & a2))’ from ‘const type {aka const boost::proto::exprns_::basic_expr&, const boost::log::v2_mt_posix::value_ref>&)> >, 0l>, boost::log::v2_mt_posix::expressions::attribute_keyword, boost::log::v2_mt_posix::expressions::attribute_keyword >, 3l>}’ to ‘boost::proto::exprns_::basic_expr&, const boost::log::v2_mt_posix::value_ref >&)> >, 0l>::proto_child0 { aka boost::phoenix::detail::function_ptr<2, bool, bool (*)(const boost::log::v2_mt_posix::value_ref&, const boost::log::v2_mt_posix::value_ref >&)>}’ }; " Bugs closed To Be Determined log Boost 1.54.0 Regression duplicate