1
0
forked from boostorg/bind

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.
This commit is contained in:
Jürgen Hunold
2015-05-27 15:39:52 +02:00
parent db56733e4e
commit 377014f1a4

View File

@@ -21,6 +21,17 @@
#include <boost/bind/bind.hpp> #include <boost/bind/bind.hpp>
#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; using namespace boost::placeholders;
#if defined(BOOST_CLANG)
# pragma clang diagnostic pop
#endif
#endif // #ifndef BOOST_BIND_HPP_INCLUDED #endif // #ifndef BOOST_BIND_HPP_INCLUDED