[Boost-bugs] [Boost C++ Libraries] #11920: MSVC warning C4505 when po::bool_switch(&flag) is being used

Subject: [Boost-bugs] [Boost C++ Libraries] #11920: MSVC warning C4505 when po::bool_switch(&flag) is being used
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-18 14:49:59


#11920: MSVC warning C4505 when po::bool_switch(&flag) is being used
-------------------------------+-----------------------------
 Reporter: anton.lauridsen@… | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
-------------------------------+-----------------------------
 When compiling a parameter definition like

 {{{
 ("wmi,w", po::bool_switch(&_generateWmi), "Generate Wmi performance
 counters")
 }}}

 with warning level 4, the follwing warnings are issued in
 program_options\detail\value_semantic.hpp:


 {{{
 boost_1_60_0\boost\program_options\detail\value_semantic.hpp(17): warning
 C4505: 'boost::program_options::typed_value<bool,char>::name':
 unreferenced local function has been removed
 boost_1_60_0\boost\program_options\detail\value_semantic.hpp(158): warning
 C4505: 'boost::program_options::typed_value<bool,char>::xparse':
 unreferenced local function has been removed
 boost\program_options\detail\value_semantic.hpp(35): warning C4505:
 'boost::program_options::typed_value<bool,char>::notify': unreferenced
 local function has been removed


 }}}

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