Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8811: Problem compiling Boost.Log tutorial
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-20 18:56:01
#8811: Problem compiling Boost.Log tutorial
-------------------------------+---------------------
Reporter: lcarreon@⦠| Owner: andysem
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: log
Version: Boost 1.54.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------+---------------------
Changes (by andysem):
* status: new => closed
* resolution: => wontfix
Comment:
I do not see how this warning could be worked around. In C++11 it is
possible to write:
{{{
const message_type message = { { {} } };
}}}
but in C++03 mode the compiler emits error on this code. Another solution
is:
{{{
const message_type message = { { tag::message() } };
}}}
but this is no longer a constant initialization, which technically makes
the code that uses keywords invalid.
And no matter what I do, I cannot get rid of these warnings:
{{{
./boost/log/expressions/message.hpp:98:20: error:
âboost::log::v2s_mt_posix::expressions::messageâ defined but not used
[-Werror=unused-variable]
./boost/log/expressions/message.hpp:108:21: error:
âboost::log::v2s_mt_posix::expressions::smessageâ defined but not used
[-Werror=unused-variable]
./boost/log/expressions/message.hpp:119:21: error:
âboost::log::v2s_mt_posix::expressions::wmessageâ defined but not used
[-Werror=unused-variable]
}}}
Bottom line: use more reasonable warning levels with your compiler or at
least disable bogus warnings like this.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8811#comment:2> 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:13 UTC