Subject: [Boost-bugs] [Boost C++ Libraries] #6142: boost::mpl/has_xxx.hpp gives several errors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-18 13:04:40
#6142: boost::mpl/has_xxx.hpp gives several errors
-----------------------------------------+----------------------------------
Reporter: Ivo Raisr <ivosh@â¦> | Owner: agurtovoy
Type: Bugs | Status: new
Milestone: Boost 1.49.0 | Component: mpl
Version: Boost 1.47.0 | Severity: Problem
Keywords: |
-----------------------------------------+----------------------------------
when using boost 1.47.0 with gcc 4.1.2 and -Wundef -Werror,
it gives the following errors
{{{
boost/mpl/has_xxx.hpp:344:9: error:
"BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined
boost/mpl/has_xxx.hpp:357:9: error: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES"
is not defined
mpl/has_xxx.hpp:386:9: error:
"BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined
boost/mpl/has_xxx.hpp:459:8: error:
"BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined
}}}
This problem has been already addressed by bug report 4666, but apparently
its part for MPL has been forgotten. Therefore I would like to resurrect
this problem again.
Either the logic of defining these four #define's needs to be revisited in
the header file, or their usage must be rewritten to check whether the
#define is defined at all. For the latter case, I'm attaching a patch.
Should you need more information, just ping me.
Ivo Raisr
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6142> 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