2 May
2019
2 May
'19
4:52 p.m.
On Thu, May 2, 2019 at 12:36 AM Antony Polukhin via Boost < boost@lists.boost.org> wrote:
On Mon, Apr 29, 2019, 20:30 Antony Polukhin
wrote: Hi,
I've merged a very cool optimization by Nikita Kniazev into the master branch. From now on boost::variant does pointer stealing for recursive variants.
This significantly improves the performance of the variants move constructors.
However if you use a variant variable after the std::move for anything except destruction and assignment then you're getting an UB. Beware!
Reverted in develop. Master will be reverted soon.
Thank you!