Boost logo

Boost :

From: Sean Hunt (rideau3_at_[hidden])
Date: 2008-04-26 11:34:50


While writing code for Init, my new static initialization library, I
discovered that I need to be able to dynamically bind a series of
parameters (the types are not known by my code - they will be passed
through a template function) and store the functor, so as to defer the
actual function call (a constructor in this case, so the return type is
known). I haven't used Boost.Bind all that often, but I don't think it
supports dynamic polymorphism on the return type. A template is not an
option in this case, because I can't use argument deduction on class
types, and you can't call functions from global scope. If anyone knows a
useable substitute that I can use to avoid having to rewrite the binding
system, that would be exceptional!

Sean Hunt


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk