Hello,
In my application I use std::shared_ptr in the public API for loading
plugins. I wanted to use boost::dll to import dynamically plugins as
well.
It looks like for some reasons that it still use boost::shared_ptr
instead of std::shared_ptr even though C++11 is 7 years old.
I wanted to convert the boost shared_ptr to std with the following
function:
std::shared_ptr<plugin> load(boost::shared_ptr<plugin> ptr)
{
return std::shared_ptr<plugin>(ptr.get(), [ptr] (auto) {});
}