Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48859 - sandbox/move/libs/move/test
From: daniel_james_at_[hidden]
Date: 2008-09-18 19:17:04


Author: danieljames
Date: 2008-09-18 19:17:03 EDT (Thu, 18 Sep 2008)
New Revision: 48859
URL: http://svn.boost.org/trac/boost/changeset/48859

Log:
Unsuprisingly the const move_from operator is not desirable. I'm working on
improved tests that demonstrate why. But this means that you can't do a legit
move from a const rvalue. No great loss, I think.

Text files modified:
   sandbox/move/libs/move/test/y.hpp | 11 ++---------
   1 files changed, 2 insertions(+), 9 deletions(-)

Modified: sandbox/move/libs/move/test/y.hpp
==============================================================================
--- sandbox/move/libs/move/test/y.hpp (original)
+++ sandbox/move/libs/move/test/y.hpp 2008-09-18 19:17:03 EDT (Thu, 18 Sep 2008)
@@ -51,16 +51,9 @@
         return *this;
     }
 
- //operator boost::move_from<Y>()
- //{
- // return boost::move_from<Y>(*this);
- //}
-
- // TODO: Is this case desirable?
- operator boost::move_from<Y>() const
+ operator boost::move_from<Y>()
     {
- return boost::move_from<Y>(*const_cast<Y*>(this));
-
+ return boost::move_from<Y>(*this);
     }
     
     static int copies; // count the number of copies


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk