Re: [Boost-bugs] [Boost C++ Libraries] #4781: Boost Program Options 'arg' text could be editiable.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4781: Boost Program Options 'arg' text could be editiable.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-18 21:49:16


#4781: Boost Program Options 'arg' text could be editiable.
----------------------------------------+-----------------------------------
  Reporter: robertmassaioli@… | Owner: vladimir_prus
      Type: Feature Requests | Status: closed
 Milestone: To Be Determined | Component: program_options
   Version: Boost 1.44.0 | Severity: Problem
Resolution: fixed | Keywords: arg program_options
----------------------------------------+-----------------------------------

Comment (by TLBettens@…):

 == Warning introduced in release 1_50_0 ==

 Function '''set_option_name''' in class '''error_with_no_option_name'''
 was introduced into file .../boost_1_50_0/boost/program_options/errors.hpp
 causing Visual C++ version 10, perhaps others, to emit the following
 warning message when compiled with warning level 4 (/W4) enabled:

 {{{
 1>c:\boostbuilding\boost_1_50_0\boost\program_options\errors.hpp(253):
 warning C4100: 'option_name' : unreferenced formal parameter
 }}}

 Unused arguments should remain unnamed, and the workaround is something
 like this:

 {{{
 252: /** Does NOT set option name, because no option name makes
 sense */
 253: virtual void set_option_name(const std::string& /* option_name
 */){}
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4781#comment:14>
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