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 02:06:24

#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:
Changes (by eric_niebler):

  * status: closed => reopened
  * resolution: wontfix =>


 Wait a minute. After reading MSDN, I think there may be a way to get msvc
 to shut up. Try this ... in the BOOST_FOREACH macro, wherever you see an
 if(foo f = x), replace it with:

   if(__pragma(warning(suppress:6001)) foo x = x)

 If that fixes the problem, please let me know.

Ticket URL: <>
Boost C++ Libraries <>
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