Re: [Boost-bugs] [Boost C++ Libraries] #1672: [foreach] compiler warnings from VC8/VC9

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1672: [foreach] compiler warnings from VC8/VC9
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-03-07 11:11:59


#1672: [foreach] compiler warnings from VC8/VC9
----------------------------------------------------------+-----------------
  Reporter: Richard Webb <richard.webb_at_[hidden]> | Owner: eric_niebler
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: foreach
   Version: Boost Development Trunk | Severity: Cosmetic
Resolution: | Keywords:
----------------------------------------------------------+-----------------
Comment (by Richard Webb <Richard.Webb_at_[hidden]>):

 Yes, that silences the warning.

 After some more testing, it seems that in this case, the warning is coming
 from the usage of _foreach_end/_foreach_cur rather than the declaration.
 The warnings go away if i add a single __pragma(warning(suppress:6001))
 anywhere in the macro before the
 {{{
 _foreach_continue && !BOOST_FOREACH_DONE(COL);
 }}}
 line. (The preprocessor output for the FOREACH macro is all on a single
 line, so the suppress works on anything in the macro after it)

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1672#comment:6>
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:49:57 UTC