|
Boost : |
Subject: Re: [boost] [xint] Boost.XInt formal review
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2011-03-07 20:53:38
On Mon, Mar 7, 2011 at 13:06, Artyom <artyomtnk_at_[hidden]> wrote:
>
> - Move Semantics:
>
> Â Â Â Â boost::xint::integer a,b;
> Â Â Â Â a = 100;
> Â Â Â Â b = boost::move(a);
> Â Â Â Â std::cout << a<<" " <<b << std::endl;
> Â Â Â Â // expect 0 100, get 100, 100
>
> Â integer is container and should behave like container
>
I think that fact should be hidden as much as possible.
What do you get from int a = 100; int b = boost::move(a);?
I'd assume 100, 100, so that result from xint is a feature, not a bug.
(Though obviously relying on that fact would be a terrible idea.)
~ Scott
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk