Subject: Re: [boost] News about proposed Boost.Application library
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2014-07-28 20:33:25
On July 28, 2014 5:13:00 PM EDT, Antony Polukhin <antoshkka_at_[hidden]> wrote:
>2014-07-28 21:46 GMT+04:00 Renato Forti <rtforti_at_[hidden]>:
>* how about adding an additional template parameter to the get_symbol
>template <typename ReturnType, typename T>
>ReturnType* get_symbol(const symbol_type<T> &sb);
>Now ((pluginapi_create)sl("create_my_plugin")) will look slightly
>* what will happen with the application, if shred library goes out of
>but we continue to use symbols from it? Must it be prevented somehow by
>Application library? Is it described in docs?
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.
(Sent from my portable computation engine)