summaryrefslogtreecommitdiff
path: root/boost/core/typeinfo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/core/typeinfo.hpp')
-rw-r--r--boost/core/typeinfo.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/core/typeinfo.hpp b/boost/core/typeinfo.hpp
index a272596a82..d33d29ba68 100644
--- a/boost/core/typeinfo.hpp
+++ b/boost/core/typeinfo.hpp
@@ -47,7 +47,7 @@ public:
bool operator==( typeinfo const& rhs ) const
{
-#if ( defined(_WIN32) || defined(__CYGWIN__) ) && defined(__GNUC__) && !defined(BOOST_DISABLE_CURRENT_FUNCTION)
+#if ( defined(_WIN32) || defined(__CYGWIN__) ) && ( defined(__GNUC__) || defined(__clang__) ) && !defined(BOOST_DISABLE_CURRENT_FUNCTION)
return lib_id_ == rhs.lib_id_? this == &rhs: std::strcmp( name_, rhs.name_ ) == 0;
@@ -65,7 +65,7 @@ public:
bool before( typeinfo const& rhs ) const
{
-#if ( defined(_WIN32) || defined(__CYGWIN__) ) && defined(__GNUC__) && !defined(BOOST_DISABLE_CURRENT_FUNCTION)
+#if ( defined(_WIN32) || defined(__CYGWIN__) ) && ( defined(__GNUC__) || defined(__clang__) ) && !defined(BOOST_DISABLE_CURRENT_FUNCTION)
return lib_id_ == rhs.lib_id_? std::less< typeinfo const* >()( this, &rhs ): std::strcmp( name_, rhs.name_ ) < 0;