Boost C++ Libraries: Ticket #4552: warning: type qualifiers ignored on function return type https://svn.boost.org/trac10/ticket/4552 <p> Hi, </p> <p> I get several warnings about const qualifiers for boost::archive and boost::serialization: </p> <pre class="wiki">boost/archive/basic_archive.hpp:57: warning: type qualifiers ignored on function return type boost/archive/basic_archive.hpp:93: warning: type qualifiers ignored on function return type boost/archive/basic_archive.hpp:130: warning: type qualifiers ignored on function return type boost/archive/basic_archive.hpp:164: warning: type qualifiers ignored on function return type boost/serialization/collection_size_type.hpp </pre><p> In all cases, the returned type is a built-in integral type. Thus, the const qualifier is obsolete and should be removed to get rid of the warning. </p> <p> Thanks and regards, </p> <p> Roland </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4552 Trac 1.4.3 Roland Bock <rbock@…> Tue, 17 Aug 2010 10:17:52 GMT <link>https://svn.boost.org/trac10/ticket/4552#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4552#comment:1</guid> <description> <p> Sorry, missed one: </p> <pre class="wiki">boost/serialization/item_version_type.hpp:39: warning: type qualifiers ignored on function return type </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Tue, 17 Aug 2010 15:29:28 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4552#comment:2 https://svn.boost.org/trac10/ticket/4552#comment:2 <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> I believe I've fixed this in the trunk. (1.45) </p> <p> Robert Ramey </p> Ticket Roland Bock <rbock@…> Tue, 17 Aug 2010 15:54:06 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/4552#comment:3 https://svn.boost.org/trac10/ticket/4552#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Just looked into the trunk: All the reported const qualifiers are still in place. </p> <p> Roland </p> <p> PS: The original post failed to contain the line number for boost/serialization/collection_size_type.hpp. It is 40 </p> Ticket Robert Ramey Fri, 20 Aug 2010 17:06:57 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4552#comment:4 https://svn.boost.org/trac10/ticket/4552#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I checked the fix into the trunk </p> <p> Robert Ramey </p> Ticket christophe.j.henry@… Fri, 22 Oct 2010 14:49:08 GMT status, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/4552#comment:5 https://svn.boost.org/trac10/ticket/4552#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">Boost-1.45.0</span> </li> </ul> <p> I still have that one: </p> <p> boost/serialization/item_version_type.hpp:39: warning: type qualifiers ignored on function return type </p> <p> and sure enough, in the trunk header I find: operator const base_type () const </p> <p> Could this be fixed for 1.45? </p> Ticket Robert Ramey Mon, 06 Dec 2010 19:29:31 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4552#comment:6 https://svn.boost.org/trac10/ticket/4552#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket