From 377014f1a49eb17d329396c2f74f0148ee74931c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Wed, 27 May 2015 15:39:52 +0200 Subject: [PATCH] Suppress clang warning about 'using namespace boost::placeholders' warning: using namespace directive in global context in header [-Wheader-hygiene] The warning is unhelpfull as this a backwards-compatibility fix. --- include/boost/bind.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/boost/bind.hpp b/include/boost/bind.hpp index 336f17c..0e03b60 100644 --- a/include/boost/bind.hpp +++ b/include/boost/bind.hpp @@ -21,6 +21,17 @@ #include +#if defined(BOOST_CLANG) +# pragma clang diagnostic push +# if __has_warning("-Wheader-hygiene") +# pragma clang diagnostic ignored "-Wheader-hygiene" +# endif +#endif + using namespace boost::placeholders; +#if defined(BOOST_CLANG) +# pragma clang diagnostic pop +#endif + #endif // #ifndef BOOST_BIND_HPP_INCLUDED