Boost Users :
Subject: Re: [Boost-users] Query on Boost.DLL
From: Klaim - JoÃ«l Lamotte (mjklaim_at_[hidden])
Date: 2016-02-21 05:59:59
On 21 February 2016 at 00:48, Leo Carreon <lcarreon_at_[hidden]> 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
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net