[boost][accumulators]: runtime accumulator_set construction?

Forgive me, my brain still thinks in C... or C++'86 on a good day. Looking at the documentation for Accumulators, and given what I think I understand about C++ metaprogramming, it looks as though the dependency resolution mechanisms in the accumulator framework operate only at compile time. Is this right? Is runtime specification of a set of features possible? Thank you, -swn

On Aug 14, 2009, at 12:32 PM, Stephen Nuchia wrote:
Forgive me, my brain still thinks in C... or C++'86 on a good day.
Looking at the documentation for Accumulators, and given what I think I understand about C++ metaprogramming, it looks as though the dependency resolution mechanisms in the accumulator framework operate only at compile time.
Is this right? Is runtime specification of a set of features possible?
You can drop certain features at runtime but cannot add new ones. The purpose of the library was optimal efficiency. For runtime configurability you can just prepare several accumulator sets with various features, and then mix and match as you need it. Matthias
participants (2)
-
Matthias Troyer
-
Stephen Nuchia