Re: [Boost-bugs] [Boost C++ Libraries] #5463: default constructor of filter_iterator does not initialize members

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5463: default constructor of filter_iterator does not initialize members
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-13 03:19:12


#5463: default constructor of filter_iterator does not initialize members
---------------------------------------------+------------------------------
  Reporter: aleksander.sulkowski@… | Owner: dave
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: iterator
   Version: Boost 1.47.0 | Severity: Problem
Resolution: invalid | Keywords: filter_iterator default constructor
---------------------------------------------+------------------------------

Comment (by dave):

 A pointer can't be both default constructed ''and'' initialized, by
 definition. The default constructor is deterministic if you only do the
 things allowed with singular iterators: assign-to-them and destroy-them.
 There is an efficiency argument for not initializing members, and besides,
 the default constructed members that are themselves iterators would still
 be singular, so in the generic case, it wouldn't help you.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5463#comment:3>
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:06 UTC