From e6b3ded33f93098eb206d089b69cbcae29eb7177 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 27 Jun 2013 19:39:27 -0700 Subject: [PATCH] Lift cref into beast namespace --- modules/beast_basics/functor/beast_Bind.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/modules/beast_basics/functor/beast_Bind.h b/modules/beast_basics/functor/beast_Bind.h index e41dc4ce89..8c45e6eb45 100644 --- a/modules/beast_basics/functor/beast_Bind.h +++ b/modules/beast_basics/functor/beast_Bind.h @@ -20,8 +20,18 @@ #ifndef BEAST_BIND_BEASTHEADER #define BEAST_BIND_BEASTHEADER -/* Brings functional support into our namespace, based on environment. -*/ +// VFALCO TODO Rename this file to beast_Functional.h + +/* Brings functional support into our namespace, based on environment. + + Notes on bind + + Difference between boost::bind and std::bind + http://stackoverflow.com/questions/10555566/is-there-any-difference-between-c11-stdbind-and-boostbind + + Resolving conflict between boost::shared_ptr and std::shared_ptr + http://stackoverflow.com/questions/4682343/how-to-resolve-conflict-between-boostshared-ptr-and-using-stdshared-ptr +*/ #ifndef BEAST_BIND_PLACEHOLDERS_N # if BEAST_MSVC && BEAST_BIND_USES_STD @@ -48,6 +58,7 @@ #if BEAST_BIND_USES_STD using std::ref; +using std::cref; using std::bind; using std::function; @@ -136,6 +147,7 @@ using std::placeholders::_20; #elif BEAST_BIND_USES_TR1 using std::tr1::ref; +using std::tr1::cref; using std::tr1::bind; using std::tr1::function; @@ -224,6 +236,7 @@ using std::tr1::placeholders::_20; #elif BEAST_BIND_USES_BOOST using boost::ref; +using boost::cref; using boost::bind; using boost::function;