[Boost-bugs] [Boost C++ Libraries] #2562: warning: type qualifiers ignored on function return type

Subject: [Boost-bugs] [Boost C++ Libraries] #2562: warning: type qualifiers ignored on function return type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-04 06:28:57


#2562: warning: type qualifiers ignored on function return type
------------------------------------------------------+---------------------
 Reporter: Yang Zhang <yang.boostbugs_at_[hidden]> | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: program_options
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
------------------------------------------------------+---------------------
 Sample source:

 {{{
 #include <boost/program_options.hpp>
 namespace po = boost::program_options;
 int main() {
   int x;
   po::options_description desc("");
   desc.add_options()("x,x", po::value<int>(&x)->default_value(2), "x");
   return 0;
 }
 }}}

 Building with -Wignored-qualifiers on g++ 4.3.2 on Ubuntu 8.10 x86_64.

 {{{
 /home/yang/work/boost/boost/any.hpp: In member function âvoid
 boost::program_options::typed_value<T, charT>::notify(const boost::any&)
 const [with T = int, charT = char]â:
 boost_program_options_warning.cc:8: instantiated from here
 /home/yang/work/boost/boost/any.hpp:200: warning: type qualifiers ignored
 on function return type
 }}}

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