diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2014-12-16 15:17:24 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2014-12-16 15:17:24 -0500 |
commit | 3b7d3cb1ea8c6f5f51d727732bbff8a6d89f3d33 (patch) | |
tree | 753a6993c80b230c064bf6b17712a6ce321fe30d /indra/llcommon/tests | |
parent | 210c95b283332bc463edb8baa2d6438c3fd500af (diff) |
For one use case, boost::bind() better than boost::phoenix::bind().
We use boost::phoenix::placeholders::arg1 to imply a whole lambda expression,
replacing boost::lambda. But to bind a plain function in a more
straightforward way, seems classic boost::bind() works while
boost::phoenix::bind() does not.
Diffstat (limited to 'indra/llcommon/tests')
-rwxr-xr-x | indra/llcommon/tests/llsdserialize_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llcommon/tests/llsdserialize_test.cpp b/indra/llcommon/tests/llsdserialize_test.cpp index afd4e7c8c1..6fbb9abfc0 100755 --- a/indra/llcommon/tests/llsdserialize_test.cpp +++ b/indra/llcommon/tests/llsdserialize_test.cpp @@ -46,6 +46,7 @@ typedef U32 uint32_t; #include "boost/range.hpp" #include "boost/foreach.hpp" #include "boost/function.hpp" +#include "boost/bind.hpp" #include "boost/phoenix/bind/bind_function.hpp" #include "boost/phoenix/core/argument.hpp" using namespace boost::phoenix; @@ -1659,7 +1660,7 @@ namespace tut // takes a callable. To this callable it passes the // std::ostream with which it's writing the // NamedTempFile. - bind(writeLLSDArray, placeholders::arg1, cdata)); + boost::bind(writeLLSDArray, _1, cdata)); python("read C++ notation", placeholders::arg1 << |