Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6212: "Method 3.1: Implement a Range Adaptor without arguments" does not implement
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-02 07:34:39
#6212: "Method 3.1: Implement a Range Adaptor without arguments" does not
implement
----------------------------------+-----------------------------------------
Reporter: ne01026@⦠| Owner: neilgroves
Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------------------------
Comment (by nathanridge):
Replying to [comment:1 ne01026@â¦]:
> I wonder why the explicit assignment is needed? Or should it be a
reference instead?
It should not be a reference (it would be a reference to a temporary which
will have died long before one tries to use it).
Regarding why the explicit assignment is needed, see
http://stackoverflow.com/questions/8092670/uninitialized-const. I believe
{{{
const detail::reverse_forwarder reversed = {};
}}}
also does the trick.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6212#comment:2> 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:11 UTC