Boost C++ Libraries: Ticket #11758: BOOST_MOVABLE_BUT_NOT_COPYABLE doesn't reset private access with rvalue ref version https://svn.boost.org/trac10/ticket/11758 <p> Hi </p> <p> As subject, BOOST_NO_CXX11_RVALUE_REFERENCES version of BOOST_MOVABLE_BUT_NOT_COPYABLE from core.hpp: </p> <pre class="wiki"> #define BOOST_MOVABLE_BUT_NOT_COPYABLE(TYPE)\ BOOST_MOVE_IMPL_NO_COPY_CTOR_OR_ASSIGN(TYPE)\ public:\ operator ::boost::rv&lt;TYPE&gt;&amp;() \ { return *BOOST_MOVE_TO_RV_CAST(::boost::rv&lt;TYPE&gt;*, this); }\ operator const ::boost::rv&lt;TYPE&gt;&amp;() const \ { return *BOOST_MOVE_TO_RV_CAST(const ::boost::rv&lt;TYPE&gt;*, this); }\ private:\ // </pre><p> rvalue ref version: </p> <pre class="wiki"> #define BOOST_MOVABLE_BUT_NOT_COPYABLE(TYPE)\ BOOST_MOVE_IMPL_NO_COPY_CTOR_OR_ASSIGN(TYPE)\ public:\ typedef int boost_move_emulation_t;\ // </pre><p> Caused some head-scratching... </p> <p> Regards </p> <p> Luke Elliott. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11758 Trac 1.4.3 Ion Gaztañaga Tue, 23 Feb 2016 15:33:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11758#comment:1 https://svn.boost.org/trac10/ticket/11758#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the report. Fixed in: </p> <p> <a class="ext-link" href="https://github.com/boostorg/move/commit/541f28037db36525f61e72a5d8ca3f86ac43f9a0"><span class="icon">​</span>https://github.com/boostorg/move/commit/541f28037db36525f61e72a5d8ca3f86ac43f9a0</a> </p> Ticket