Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-07-20 11:20:55


"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


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