|
Boost : |
Subject: Re: [boost] [review] Multiprecision review scheduled for June 8th - 17th, 2012
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-06-02 17:40:48
Le 02/06/12 18:24, Marc Glisse a écrit :
> On Fri, 1 Jun 2012, John Maddock wrote:
>
>>>> * the example about using 0 vs 11 temporaries doesn't mention what
>>>> happens to the boost package if we disable expression template.
>>>> Does it use a single temporary (using rvalue-references) or plenty?
>>>
>>> Plenty, haven't measured how many, but I'd expect it to be the same
>>> as for mpclass. I guess I should cover that.
>>>
>>> I think you really want to investigate using rvalue references, in
>>> that case. Which reminds me: there is some overlap with
>>> boost/operators.hpp (I heard someone was rewriting it?), so the
>>> rvalue reference techniques could be the same, and the documentation
>>> could say something about the relation between the 2.
>>
>> rvalue references and move semantics are already supported.
>
> You have a move constructor,
I've missed it. Please, could you point me where it is defined and
documented?
> but I haven't seen anything like:
>
> number operator+(number&& a, number const&b){return move(a+=b);}
>
Best,
Vicente
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk