Boost logo

Boost :

Subject: Re: [boost] [variant] Heads-up!
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2019-05-02 07:35:39


On Mon, Apr 29, 2019, 20:30 Antony Polukhin <antoshkka_at_[hidden]> 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.

>


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