
20 Jul
2004
20 Jul
'04
4:20 p.m.
"Vladimir Prus" wrote:
or something trickier, like:
- calling C++ functions:
plugin.call<void (void)>("bar") -- no need for "extern "C"
- some auto-registraction mechanisms
plugin_registry<CodeGenerator> plugins; plugins.load("foo"); plugins.load("bar");
plugins["i386"].run(.......)
You may take look on polymorphic_map (in Boost.Files section). It is work in progress but useable and can serve as base for advanced object factory. /Pavel