Boost logo

Boost :

Subject: Re: [boost] G++ hack/challenge?
From: Daniel Frey (d.frey_at_[hidden])
Date: 2009-05-27 11:10:30


On 30.04.2009, at 17:50, David Abrahams wrote:

> Ideally, "has a move constructor" would mean
>
> - when constructed from an rvalue of the same type, a copy
> constructor
> with signature T(T const&) is not used.
>
> though I would settle for
>
> - has a constructor with the signature T(T&&)
>
> I'm willing to use G++-specific hackery if necessary.
>
> I strongly suspect it's impossible, but if you can think of any way to
> do it, I'd really appreciate knowing about it. You'll be my hero
> forever ;-)

While I realize it might be too late for your needs (BoostCon) and
what I have is incomplete, I still hope the following is useful as a
starting point towards a real has_move_constructor:


Tested with GCC 4.4.0

Regards, Daniel



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