Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12895: VS 2012: zip_iterator dereference causes a compiler error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-03-14 07:03:34
#12895: VS 2012: zip_iterator dereference causes a compiler error
--------------------------------+------------------------------
Reporter: daniel.kruegler@⦠| Owner: jeffrey.hellrung
Type: Bugs | Status: new
Milestone: To Be Determined | Component: iterator
Version: Boost 1.63.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+------------------------------
Comment (by daniel.kruegler@â¦):
Replying to [comment:3 daniel.kruegler@â¦]:
> Either one should prevent that a reference type is passed to this member
template or the reduction code should be extended by adding an ''initial''
reference removal:
>
> {{{
> typedef typename
> remove_reference<typename remove_cv<typename
> remove_reference<Iterator>::type>::type>::type
> iterator;
> }}}
>
In fact the application of remove_reference and remove_cv is applied in
the wrong order, it would suffice to invert them as follows:
{{{
typedef typename remove_cv<typename
remove_reference<Iterator>::type>::type
iterator;
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12895#comment:4> 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-03-14 07:06:44 UTC