Subject: [Boost-bugs] [Boost C++ Libraries] #9538: BOOST_PROTO_USE_NORMAL_RESULT_OF incorrectly defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-12-31 18:32:24
#9538: BOOST_PROTO_USE_NORMAL_RESULT_OF incorrectly defined
-------------------------------+--------------------------
Reporter: Hui Li <Hui.Li@â¦> | Owner: eric_niebler
Type: Bugs | Status: new
Milestone: To Be Determined | Component: proto
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
-------------------------------+--------------------------
In proto/proto_fwd.hpp, based on how the macro
BOOST_PROTO_USE_NORMAL_RESULT_OF is used, it's meant to be defined when
the compiler supports c++11 decltype and implements N3276, for example,
BOOST_PROTO_RESULT_OF is boost::result_of when
BOOST_PROTO_USE_NORMAL_RESULT_OF is defined.
However, its definition seems incorrect, and is inconsistent with the
comments next to it.
{{{
#ifdef BOOST_NO_CXX11_DECLTYPE_N3276
^^^^^^ this should be #ifndef
# // Proto can only use the decltype-based result_of if N3276 has been
# // implemented by the compiler.
# // See http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2011/n3276.pdf
# ifndef BOOST_PROTO_USE_NORMAL_RESULT_OF
# define BOOST_PROTO_USE_NORMAL_RESULT_OF
# endif
#endif
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9538> 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:15 UTC