Subject: [Boost-bugs] [Boost C++ Libraries] #12739: Undefined macro warning in stl_type_index.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-09 23:37:43
#12739: Undefined macro warning in stl_type_index.hpp
-------------------------------------------+------------------------
Reporter: Matthew Collett <m_collett@â¦> | Owner: apolukhin
Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_index
Version: Boost 1.62.0 | Severity: Cosmetic
Keywords: |
-------------------------------------------+------------------------
Line 147 of `stl_type_index.hpp` generates the warning from Clang:
`'_MSC_VER' is not defined, evaluates to 0`
Fix: replace
{{{
#if _MSC_VER > 1600 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5 &&
defined(__GXX_EXPERIMENTAL_CXX0X__))
}}}
by
{{{
#if (defined(_MSC_VER) && _MSC_VER > 1600) || (defined(__GNUC__) &&
__GNUC__ == 4 && __GNUC_MINOR__ > 5 &&
defined(__GXX_EXPERIMENTAL_CXX0X__))
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12739> 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:20 UTC