$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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