Sign in to follow this  

Loki Functor vs Boost Function

This topic is 3665 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone - I'm kinda researching Functors right now. I wrote my own naive functor for the first iteration of my engine, but now I want something far more fully featured... I've been reading about Loki's functor - which seems nice, but really complex... I admittedly don't know too much about Boost's functor, which I understand is implemented totally differently. Does anyone here have any experience with them, who might be able to simply describe the differences, give some opinions on which one is better? Thanks for any help!

Share this post


Link to post
Share on other sites
I find boost::function<> to be easier to use. It's also being added to the C++ standard so you'll start seeing it distributed with your C++ implementation soon, or as part of a TR1 package.

A bunch of alternatives have shown up on codeproject over the years, which have different performance characteristics.

OTOH, Loki's is a little more flexible, especially with respect to the threading model.

Share this post


Link to post
Share on other sites

This topic is 3665 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this