Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3659: warning when using boost::counting_iterator<int> and std::vector<int> on MSVC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-06 07:09:04
#3659: warning when using boost::counting_iterator<int> and std::vector<int> on
MSVC
---------------------------+------------------------------------------------
Reporter: anonymous | Owner: dave
Type: Bugs | Status: closed
Milestone: Boost 1.42.0 | Component: iterator
Version: Boost 1.41.0 | Severity: Cosmetic
Resolution: invalid | Keywords:
---------------------------+------------------------------------------------
Comment (by Sergey Mitsyn <svm at jinr.ru>):
Hello again,
I've found [http://lists.boost.org/Archives/boost/2008/03/134556.php].
Okay, now the reason to set difference_type to be intmax_t is perfectly
clear to me. Also, I see that boost::counting_iterator<intmax_t> may
trigger undefined behavior (as in the example I listed above).
But still i would like to have an option for
{{{boost::counting_iterator}}} (or another counting iterator that is not
called exactly {{{boost::counting_iterator}}}) so it does not spam my
console with compiler warnings.
wbr,
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3659#comment:10> 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