boost-functional

boost lambda collection size evaluation

I have a function of the form: void DoSomething(const boost::function<bool ()>& condition, other stuff); This function does some work and returns only when the condition is true. The condition has been expressed as a functor argument because I want to supply different conditions at different call sites. Now, this is fairly straightf...

Is it possible to create a C++ factory system that can create an instance of any "registered" object type, regardless of inheritance?

Hello, I've spent my entire day researching this topic, so it is with some scattered knowledge on the topic that i come to you with this inquiry. Please allow me to describe what I am attempting to accomplish, and maybe you can either suggest a solution to the immediate question, or another way to tackle the problem entirely. I am tryi...