[Boost-bugs] [Boost C++ Libraries] #8665: Unreachable code warnings in variant.hpp - msvc

Subject: [Boost-bugs] [Boost C++ Libraries] #8665: Unreachable code warnings in variant.hpp - msvc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-06 08:51:54


#8665: Unreachable code warnings in variant.hpp - msvc
------------------------------+---------------------
 Reporter: hvemha@… | Owner: ebf
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: variant
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 This code produces C4702 warnings when compiled with warning level 4 and
 optimization enabled (/W4 and /O2). Tested with both VC10 and VC11.


 {{{
 #include "boost/variant/variant.hpp"

 int main()
 {
         boost::variant< int, double> a, b;

         if ( a < b )
         {
                 return 1;
         }

         return 0;
 }
 }}}

 d:\development\include\boost\variant\variant.hpp(353) : warning C4702:
 unreachable code
 d:\development\include\boost\variant\variant.hpp(353) : warning C4702:
 unreachable code
 d:\development\include\boost\variant\variant.hpp(1017) : warning C4702:
 unreachable code
 d:\development\include\boost\variant\variant.hpp(1017) : warning C4702:
 unreachable code

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8665>
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:13 UTC