Boost logo

Boost :

Subject: [boost] News about proposed Boost.Application library
From: Matus Chochlik (chochlik_at_[hidden])
Date: 2014-07-29 03:44:41


On Tue, Jul 29, 2014 at 9:39 AM, Klaim - Joël Lamotte <mjklaim_at_[hidden]>
wrote:

> > It would be nice if get_symbol returned a smart pointer that contained a
> shared_ptr to the library. When all such references are released, the
> library can be unloaded.
> >
>
> I disagree. In my experience it would be more useful if it contained a
> weak_ptr to the library, with a centralised system keeping all loaded
> libraries alive and allowing the used to unload the library explicitely.
> The get_symbol return type would then be testable.
> That way it is easier to find issues related to plugins and its still
> possible for the user to prevent these issues at runtime.
>

+1


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