$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [chrono/date] name of getters - error: changes meaning of
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-05-06 10:34:27
Hi,
Naming the getters with the same name as the type
chrono::year year() const;
results in a lot of error with gcc <= 4.8.0
../../../boost/chrono/date/ymd_date.hpp:267:7: erreur: declaration of
boost::chrono::year boost::chrono::ymd_date::year() const [-fpermissive]
../../../boost/chrono/date/year.hpp:36:11: error: changes meaning of
year from class boost::chrono::year [-fpermissive]
When I add -fpermissive I get yet the warning
../../../boost/chrono/date/year.hpp:36:11: attention : changes meaning
of year from class boost::chrono::year [-fpermissive]
Do someone how to get ride of this warning/spam?
In addition, no way to make it working with gcc-4.2.1.
No issue with clang-3.1, 3.2.
Not checked with msvc.
Is this a bug on gcc?
Best,
Vicente