Subject: [Boost-bugs] [Boost C++ Libraries] #11758: BOOST_MOVABLE_BUT_NOT_COPYABLE doesn't reset private access with rvalue ref version
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-27 14:10:47
#11758: BOOST_MOVABLE_BUT_NOT_COPYABLE doesn't reset private access with rvalue ref
version
------------------------------+------------------------
Reporter: lukester_null@⦠| Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: move
Version: Boost 1.59.0 | Severity: Problem
Keywords: |
------------------------------+------------------------
Hi
As subject, BOOST_NO_CXX11_RVALUE_REFERENCES version of
BOOST_MOVABLE_BUT_NOT_COPYABLE from core.hpp:
{{{
#define BOOST_MOVABLE_BUT_NOT_COPYABLE(TYPE)\
BOOST_MOVE_IMPL_NO_COPY_CTOR_OR_ASSIGN(TYPE)\
public:\
operator ::boost::rv<TYPE>&() \
{ return *BOOST_MOVE_TO_RV_CAST(::boost::rv<TYPE>*, this); }\
operator const ::boost::rv<TYPE>&() const \
{ return *BOOST_MOVE_TO_RV_CAST(const ::boost::rv<TYPE>*, this);
}\
private:\
//
}}}
rvalue ref version:
{{{
#define BOOST_MOVABLE_BUT_NOT_COPYABLE(TYPE)\
BOOST_MOVE_IMPL_NO_COPY_CTOR_OR_ASSIGN(TYPE)\
public:\
typedef int boost_move_emulation_t;\
//
}}}
Caused some head-scratching...
Regards
Luke Elliott.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11758> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC