Subject: Re: [boost] [Multiprecision] Does MP use references internally?
From: Michel Morin (mimomorin_at_[hidden])
Date: 2013-06-21 12:23:05
John Maddock wrote:
> However... in the C++11 world I can think of one legitimate use case that's
> broken by this - and that's when you have user-defined literals:
> auto x = +1234_my_suffix;
> which results in a dangling-reference-to-temporary.
I think we can avoid dangling references by adding a unary plus operator
overload (that returns a value) for rvalues.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk