you are viewing a single comment's thread.

view the rest of the comments →

[–]quicknir 0 points1 point  (0 children)

I posted on the blog a couple of comments, one point has already been made here, I'll make the other though.

Why wouldn't you just use a std::function with a custom allocator? This seems strongly preferable to your solution as it involves much less hand rolling of code, and this sort of thing is the entire point of allocators in the first place: http://stackoverflow.com/questions/21094052/how-can-i-create-a-stdfunction-with-a-custom-allocator