Re: [Boost-bugs] [Boost C++ Libraries] #3659: warning when using boost::counting_iterator<int> and std::vector<int> on MSVC

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-04 22:38:28


#3659: warning when using boost::counting_iterator<int> and std::vector<int> on
MSVC
---------------------------+------------------------------------------------
  Reporter: anonymous | Owner: dave
      Type: Bugs | Status: reopened
 Milestone: Boost 1.42.0 | Component: iterator
   Version: Boost 1.41.0 | Severity: Cosmetic
Resolution: | Keywords:
---------------------------+------------------------------------------------

Comment (by dave):

 Replying to [comment:2 Sergey Mitsyn <svm at jinr.ru>]:
>
> IMHO looks like the C-style cast to {{{ numeric_distance }}} forces the
 difference to be intmax_t, and implicit conversion to return type {{{
 Difference }}} invokes the warning.

 There's no C-style cast. That's calling numeric_distance from
 boost/detail/numeric_traits.hpp.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3659#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-02-16 18:50:06 UTC