Open Flamefire opened 6 years ago
That seems odd. Boost.Bind and Boost.Phoenix just create bog-standard Function Objects (just like the C++11+ std::function supports). Does kaguya's function wrapper not support that? If not it should switch to boost::function (which can be embedded and re-name-spaced via one of the boost tools).
Was thinking the same, but there seems to be some more magic going on. However there is an undocumented template version of kaguya::function
that takes the function signature as its first template param. Using this works.
param. Using this works.
Ahh, that makes sense then, function object's can have multiple overrides in the same object so it could not distinguish otherwise without an argument unifying it, which a template argument would do (which is why both boost::function and std::function require it in all cases).
Ah ok. Then this is a documentation issue.
Currently it seems to be impossible to use Boost.Bind/Boost.Phoenix with kaguya. But those are required to use lambdas before C++11.
My sample usage is:
I get the following errors:
Boost.Phoenix