Boost C++ Libraries: Ticket #2562: warning: type qualifiers ignored on function return type https://svn.boost.org/trac10/ticket/2562 <p> Sample source: </p> <pre class="wiki">#include &lt;boost/program_options.hpp&gt; namespace po = boost::program_options; int main() { int x; po::options_description desc(""); desc.add_options()("x,x", po::value&lt;int&gt;(&amp;x)-&gt;default_value(2), "x"); return 0; } </pre><p> Building with -Wignored-qualifiers on g++ 4.3.2 on Ubuntu 8.10 x86_64. </p> <pre class="wiki">/home/yang/work/boost/boost/any.hpp: In member function âvoid boost::program_options::typed_value&lt;T, charT&gt;::notify(const boost::any&amp;) 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 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2562 Trac 1.4.3 Yang Zhang <yang.boostbugs@…> Thu, 04 Dec 2008 06:39:24 GMT <link>https://svn.boost.org/trac10/ticket/2562#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2562#comment:1</guid> <description> <p> Whoops, I meant to mark this as a bug in svn trunk. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Thu, 04 Dec 2008 07:43:32 GMT</pubDate> <title>owner, component changed https://svn.boost.org/trac10/ticket/2562#comment:2 https://svn.boost.org/trac10/ticket/2562#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Vladimir Prus</span> to <span class="trac-author">nasonov</span> </li> <li><strong>component</strong> <span class="trac-field-old">program_options</span> → <span class="trac-field-new">any</span> </li> </ul> <p> This is problem with boost::any, not program_options, so I'm changing component. Note that IIUC, boost::any is not actively maintained, so I'm not sure if this will be fixed soon. Note also that I don't have any opinion whether this warning is a actual problem with boost::any, or a bogus warning. </p> Ticket Vladimir Prus Thu, 04 Dec 2008 07:44:02 GMT owner changed https://svn.boost.org/trac10/ticket/2562#comment:3 https://svn.boost.org/trac10/ticket/2562#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">nasonov</span> to <span class="trac-author">No-Maintainer</span> </li> </ul> Ticket Sascha Ochsenknecht <s.ochsenknecht@…> Tue, 17 Nov 2009 06:55:40 GMT owner, component changed; cc set https://svn.boost.org/trac10/ticket/2562#comment:4 https://svn.boost.org/trac10/ticket/2562#comment:4 <ul> <li><strong>cc</strong> <span class="trac-author">s.ochsenknecht@…</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">any</span> → <span class="trac-field-new">program_options</span> </li> </ul> <p> Sorry, </p> <p> but I think it is a problem in program_options, solution can be found in here: <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/3603"><span class="icon">​</span>#3603</a> </p> Ticket Sascha Ochsenknecht Fri, 20 Nov 2009 09:09:41 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2562#comment:5 https://svn.boost.org/trac10/ticket/2562#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57800" title="remove compile warnings, Fixes #2562">[57800]</a>) remove compile warnings, Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2562" title="#2562: Bugs: warning: type qualifiers ignored on function return type (closed: fixed)">#2562</a> </p> Ticket