Boost logo

Boost :

Subject: Re: [boost] [c++ question] detecting reference to temporaries
From: Nikita Kniazev (nok.raven_at_[hidden])
Date: 2018-10-25 14:47:50


> Is there any technique that would let me test for reference to
> temporaries? The only option I see would be to promote compiler warnings
> into error, but maybe there is something there?

AddressSanitizer with -fsanitize-address-use-after-scope
https://github.com/google/sanitizers/wiki/AddressSanitizerUseAfterScope


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