Modify

Ticket #11758 (closed Bugs: fixed)

Opened 17 months ago

Last modified 13 months ago

BOOST_MOVABLE_BUT_NOT_COPYABLE doesn't reset private access with rvalue ref version

Reported by: lukester_null@… Owned by: igaztanaga
Milestone: To Be Determined Component: move
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

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.

Attachments

Change History

comment:1 Changed 13 months ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.