Subject: [Boost-bugs] [Boost C++ Libraries] #5167: Allow proto::extends default ctor to leave the proto_expr_ member uninitialized
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-07 19:35:24
#5167: Allow proto::extends default ctor to leave the proto_expr_ member
uninitialized
-------------------------------------------------+--------------------------
Reporter: antoine.de-maricourt@⦠| Owner: eric_niebler
Type: Bugs | Status: new
Milestone: To Be Determined | Component: proto
Version: Boost 1.46.0 | Severity: Optimization
Keywords: proto, extends, default constructor |
-------------------------------------------------+--------------------------
Proposal:
turn default ctor for proto::extends in proto/extends.hpp
from:
{{{
extends(): proto_expr_(){}
}}}
to:
{{{
extends() { }
}}}
Rational:
It is up to the derived class to decide if expr can be left in undefined
state (and to control it), and not to the extends base class.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5167> 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:05 UTC