From cf266d22e4dac67b04fb7402a19accc584665520 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Fri, 29 May 2015 11:26:59 +0200 Subject: [PATCH] Fix compilation with BOOST_BIND_NO_PLACEHOLDERS If BOOST_BIND_NO_PLACEHOLDERS is defined, there is no namespace boost::placeholders. --- include/boost/bind.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/bind.hpp b/include/boost/bind.hpp index e8accaa..450120c 100644 --- a/include/boost/bind.hpp +++ b/include/boost/bind.hpp @@ -21,6 +21,8 @@ #include +#ifndef BOOST_BIND_NO_PLACEHOLDERS + #if defined(BOOST_CLANG) # pragma clang diagnostic push # if __has_warning("-Wheader-hygiene") @@ -34,4 +36,6 @@ using namespace boost::placeholders; # pragma clang diagnostic pop #endif +#endif // #ifndef BOOST_BIND_NO_PLACEHOLDERS + #endif // #ifndef BOOST_BIND_HPP_INCLUDED