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:
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include <boost/bind/bind.hpp>
|
#include <boost/bind/bind.hpp>
|
||||||
|
|
||||||
|
#ifndef BOOST_BIND_NO_PLACEHOLDERS
|
||||||
|
|
||||||
#if defined(BOOST_CLANG)
|
#if defined(BOOST_CLANG)
|
||||||
# pragma clang diagnostic push
|
# pragma clang diagnostic push
|
||||||
# if __has_warning("-Wheader-hygiene")
|
# if __has_warning("-Wheader-hygiene")
|
||||||
@@ -34,4 +36,6 @@ using namespace boost::placeholders;
|
|||||||
# pragma clang diagnostic pop
|
# pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // #ifndef BOOST_BIND_NO_PLACEHOLDERS
|
||||||
|
|
||||||
#endif // #ifndef BOOST_BIND_HPP_INCLUDED
|
#endif // #ifndef BOOST_BIND_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user