Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6139: error: "BOOST_CLANG" is not defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-19 14:42:39
#6139: error: "BOOST_CLANG" is not defined
------------------------------------------+---------------------------------
Reporter: Ivo Raisr <ivosh@â¦> | Owner: danieljames
Type: Bugs | Status: assigned
Milestone: Boost 1.49.0 | Component: None
Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------+---------------------------------
Comment (by jhunold):
Revision https://svn.boost.org/trac/boost/changeset/75544 just broke my
clang builds.
The correct solution would be to either
- use #if defined(BOOST_CLANG) see container_fwd_guarded.diff
- change "class" to struct see containner_fwd_simple.diff
The interesting thing is that container_fwd.hpp contains a msvc-
suppression for struct/class mismatch: line 104ff:
{{{
#if defined(BOOST_MSVC)
#pragma warning(push)
#pragma warning(disable:4099) // struct/class mismatch in fwd declarations
#endif
}}}
So the "correct" solution depends on how the corresponding standard
library declares struct or class "complex". At least the guarded approach
prevents clang from emitting a warning.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6139#comment:3> 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:07 UTC