Boost logo

Boost :

Subject: [boost] [move] moving temporaries of copyable types
From: klaus triendl (klaus_at_[hidden])
Date: 2009-06-21 08:40:03


Hi,

I've recently taken a look at the Boost.Move library and it seems that
it is only possible to make 1) either non-copyable types movable or 2)
make copyable types move-aware by explicitly moving them.

Now, I've discovered for myself that it is possible for pre-c++09
compilers to make copyable types *implicitly* movable by detecting
temporaries that can be moved.

So, my question is whether this is well-known and this feature was
deliberately excluded from Boost.Move or nobody has discovered it yet.
It would be great to have support for copy- and (implicit) move-semantics.

Klaus Triendl


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