Re: [Boost-bugs] [Boost C++ Libraries] #5127: Incorrect result_of usage in transform_iterator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5127: Incorrect result_of usage in transform_iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-24 14:52:24


#5127: Incorrect result_of usage in transform_iterator
--------------------------------------+-------------------------------------
  Reporter: mimomorin@… | Owner: dave
      Type: Patches | Status: closed
 Milestone: Boost 1.47.0 | Component: iterator
   Version: Boost Development Trunk | Severity: Problem
Resolution: fixed | Keywords: transform_iterator
--------------------------------------+-------------------------------------

Comment (by michel):

 OK, I figured out what the problem is.
 The problem is caused by the `/Za` compiler option.
 The `/Za` option is buggy and its use is not recommended
 (or rather, you shouldn't use it).
 By removing `/Za`, the warning gets disappeared.
 There is nothing wrong with the code in `transform_iterator.hpp`,
 and I think this warning problem would be "won't fix".

 The solution to this problem is

   **Don't use `/Za`.**

 See the posts from Stephan T. Lavavej (Visual C++ libraries developer)
 such as
 [[http://thread.gmane.org/gmane.comp.compilers.clang.devel/21638/focus=21638|this]]
 and
 [[http://thread.gmane.org/gmane.comp.lib.boost.devel/212140/focus=212186|this]].
 Also,
 [[https://svn.boost.org/trac/boost/wiki/Guidelines/WarningsGuidelines|Boost's
 warning guidelines]] might be useful for you.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5127#comment:11>
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:10 UTC