Use boost for bind on FreeBSD (hack)

This commit is contained in:
Vinnie Falco
2013-06-27 19:45:37 -07:00
parent 443551abe6
commit b56c362af2

View File

@@ -27,10 +27,12 @@
// We bind functions that take references, which is // We bind functions that take references, which is
// unsupported on some platforms // unsupported on some platforms
// //
// VFALCO TODO Rewrite functions to use pointers instead // VFALCO TODO Fix this problem with FreeBSD and std::bind.
// of references so we can get off boost::bind // We need to enforce a minimum library/g++ version.
// //
//#define BEAST_BIND_USES_BOOST 1 #if __FreeBSD__
#define BEAST_BIND_USES_BOOST 1
#endif
#ifndef BEAST_USE_LEAKCHECKED #ifndef BEAST_USE_LEAKCHECKED
#define BEAST_USE_LEAKCHECKED BEAST_CHECK_MEMORY_LEAKS #define BEAST_USE_LEAKCHECKED BEAST_CHECK_MEMORY_LEAKS