Opened 8 years ago

Closed 8 years ago

#10595 closed Feature Requests (fixed)

Feature Request: Macro for initializing base classes in move ctors.

Reported by: anonymous Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: move
Version: Boost 1.56.0 Severity: Not Applicable
Keywords: Cc:

Description

Initializing base classes in move constructors involves some boiler-plate code. To remedy this, it is requested that a macro along the following lines be provided:

#define BOOST_MOVE_INITBASEMOVECTOR(baseclassname, rhs) \

baseclassname(::boost::move(static_cast<baseclassname &>(rhs)))

Change History (1)

comment:1 by Ion Gaztañaga, 8 years ago

Resolution: fixed
Status: newclosed

Added BOOST_MOVE_BASE utility in commit:

SHA-1: ad50fba54fd2278762045ab3b03c32c0df8ac231

Note: See TracTickets for help on using tickets.