[phoenix] std::function doesn't work with phoenix ?

25 Oct
2012
25 Oct
'12
9:25 a.m.
When I try to do this is VC++ 2010 : #include <functional> #include <boost\bind.hpp> #include <boost\phoenix.hpp> float Func() { return 1.f; } typedef std::function<float()> F; int main() { F f2 = boost::phoenix::bind(&Func); } It failed to compile, but when I change boost::phoenix::bind to boost::bind it compiled just fine. What's going on ? I thought phoenix::bind and boost::bind is interchangeable.

31 Oct
31 Oct
6:20 a.m.
New subject: [phoenix] std::function doesn't work with phoenix ?
On 10/25/2012 5:25 PM, Kamil Zubair wrote:
Phoenix 2 also works fine. Try #include <boost/spirit/home/phoenix.hpp> Looks like a phoenix-3 problem. Thomas ? Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
4592
Age (days ago)
4598
Last active (days ago)
1 comments
2 participants
participants (2)
-
Joel de Guzman
-
Kamil Zubair