Boost logo

Boost :

Subject: Re: [boost] [move] Unifying move emulation code in boost
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2009-01-05 06:41:59


Ion Gaztañaga wrote:
> Hi,
>
> I've written (attached) a small, surely not complete, but usable
> boost/move.hpp header (ok, it could go to boost/detail/move.hpp until a
> decent review is done) that is tested with a movable class in the file
> movable_test.cpp, both with Visual 7.1 and move-enabled GCC 4.3.

One small point.

   template<class T>
   class rv
   {
      public:
      T* operator->() {return &r_;}
   };

Please, make it aware of the types with custom operator&. You can use
addressof instead.


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