$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2025-06-14 07:42:14
On Sat, Jun 14, 2025, 07:16 Yuri via Boost-users <
boost-users_at_[hidden]> wrote:
> I've encountered the compilation error with this program with
> boost-libs-1.88.0:
>
<...>
> It seems that such assignment should work.
>
Boost.DLL now uses std::shared_ptr. Quoting release notes
https://www.boost.org/releases/1.88.0/ :
> boost::dll:import_* functions now return std::shared_ptr rather than
boost::shared_ptr. Define BOOST_DLL_USE_BOOST_SHARED_PTR to restore the old
behavior, however note that the macro will be removed in one of the
upcomming Boost releases.
So for the above case I'd recommend to use `auto` or switch to
std::shared_ptr.