On 21 February 2016 at 00:48, Leo Carreon <lcarreon@bigpond.net.au> wrote:
I have been reading the Boost.DLL documentation.
Can a single plugin support multiple API’s?
If yes, when the multiple API’s are used at the same time; will there be only one instance of the plugin loaded or will there be multiple instances loaded?

I might have misunderstood your question, but I believe that you ca have anyhting as API of your plugin
and have as many plugin instances as you want.
"plugin" in the library is only a common example of how we use dynamically loaded shared libraries.
Basically, as long as you have a way to instantiate or acquire a plugin implementation (for example with a factory function),
it will be managed through a shared_ptr (as the documentation shows).


Boost-users mailing list