From b56c362af20809a3199534cd2bf33cdf435c8032 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 27 Jun 2013 19:45:37 -0700 Subject: [PATCH] Use boost for bind on FreeBSD (hack) --- BeastConfig.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/BeastConfig.h b/BeastConfig.h index 42eb12b07b..b440151449 100644 --- a/BeastConfig.h +++ b/BeastConfig.h @@ -27,10 +27,12 @@ // We bind functions that take references, which is // unsupported on some platforms // -// VFALCO TODO Rewrite functions to use pointers instead -// of references so we can get off boost::bind +// VFALCO TODO Fix this problem with FreeBSD and std::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 #define BEAST_USE_LEAKCHECKED BEAST_CHECK_MEMORY_LEAKS