[Boost-bugs] [Boost C++ Libraries] #1416: Warnings from Boost.Function need suppression.

Subject: [Boost-bugs] [Boost C++ Libraries] #1416: Warnings from Boost.Function need suppression.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-06 17:48:24


#1416: Warnings from Boost.Function need suppression.
-------------------------------------+--------------------------------------
 Reporter: pbristow | Owner: dgregor
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: function
  Version: Boost Development Trunk | Severity: Problem
 Keywords: warnings function |
-------------------------------------+--------------------------------------
 Using (in directly via Boost.Parameter?)

 sparks dozens of MSVC 4224 warnings with MSVC at level 1

 Error Message
 nonstandard extension used : formal parameter 'identifier' was previously
 defined as a type

 The identifier was previously used as a typedef. This causes a warning
 under ANSI compatibility (/Za).

 Example
   Copy Code
 // C4224.cpp
 // compile with: /Za /W1 /LD
 typedef int I;
 void func ( int I ); // C4224

 Please could these be suppressed (or a variable name changed to avoid
 this?)

 # pragma warning(disable : 4224) // nonstandard extension used : formal
 parameter 'function_ptr' was previously defined as a type

 i:\trunk\boost/function/function_template.hpp(92) : warning C4224:
 nonstandard extension used : formal parameter 'function_ptr' was
 previously defined as a type
         i:\trunk\boost/function/function_template.hpp(97) : see reference
 to class template instantiation
 'boost::detail::function::function_invoker0<FunctionPtr,R>' being compiled

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1416>
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:56 UTC