
28 Apr
2010
28 Apr
'10
8:45 a.m.
You're not missing anything - a lot of boost/std/std::tr1 is designed to be used with templates rather than runtime polymorphism - mixing the two isn't trivial. Fortunately, the type erasure method is quite easy to use once you know about it - but it does require a bit of extra work (you don't have to use boost::function for it either - that's just a quick shortcut).