Opened 7 years ago

Last modified 6 years ago

#11920 new Bugs

MSVC warning C4505 when po::bool_switch(&flag) is being used

Reported by: anton.lauridsen@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc:

Description

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


Change History (1)

comment:1 by matt.rixman@…, 6 years ago

Can confirm

Note: See TracTickets for help on using tickets.