From e43796c42c6c0b3e5a4fb4262132a0d66f27eeb6 Mon Sep 17 00:00:00 2001 From: Neil Groves Date: Wed, 4 Jun 2014 13:15:04 +0100 Subject: [PATCH] allow clang to use Range Concepts despite reporting GCC 4.2. --- include/boost/range/concepts.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/range/concepts.hpp b/include/boost/range/concepts.hpp index d957c1b..3e612a3 100644 --- a/include/boost/range/concepts.hpp +++ b/include/boost/range/concepts.hpp @@ -64,6 +64,7 @@ namespace boost { #ifndef BOOST_RANGE_ENABLE_CONCEPT_ASSERT // List broken compiler versions here: +#ifndef __clang__ #ifdef __GNUC__ // GNUC 4.2 has strange issues correctly detecting compliance with the Concepts // hence the least disruptive approach is to turn-off the concept checking for @@ -79,6 +80,7 @@ namespace boost { #define BOOST_RANGE_ENABLE_CONCEPT_ASSERT 0 #endif #endif +#endif #ifdef __BORLANDC__ #define BOOST_RANGE_ENABLE_CONCEPT_ASSERT 0