Subject: [Boost-bugs] [Boost C++ Libraries] #4552: warning: type qualifiers ignored on function return type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-17 09:49:39
#4552: warning: type qualifiers ignored on function return type
--------------------------------------------+-------------------------------
Reporter: Roland Bock <rbock@â¦> | Owner: ramey
Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: serialization
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
--------------------------------------------+-------------------------------
Hi,
I get several warnings about const qualifiers for boost::archive and
boost::serialization:
{{{
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
}}}
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.
Thanks and regards,
Roland
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4552> 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:04 UTC