1
0
forked from boostorg/bind

Fix compilation with BOOST_BIND_NO_PLACEHOLDERS

If BOOST_BIND_NO_PLACEHOLDERS is defined, there is no namespace boost::placeholders.
This commit is contained in:
Marcel Raad
2015-05-29 11:26:59 +02:00
parent 12b976939c
commit cf266d22e4

View File

@@ -21,6 +21,8 @@
#include <boost/bind/bind.hpp>
#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