
5 Jan
2009
5 Jan
'09
11:41 a.m.
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.