diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2017-12-02 00:09:48 -0500 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2017-12-04 10:18:51 -0500 |
commit | c329cf4dc81804e6d88d5dbb760151d773a3dedf (patch) | |
tree | 5df9af8521bba350be4c82c30a115091887c4cba /src/mongo/bson/util | |
parent | 46be56ad329324ed0e3b0f277d59b6e008519da1 (diff) | |
download | mongo-c329cf4dc81804e6d88d5dbb760151d773a3dedf.tar.gz |
SERVER-32070 migrate some easy stdx::bind to lambdas
Work around GCC bug#67274 with explicit this-> syntax.
This reverts commit 54db6356c47d7a639eae062818c3026561a64594.
This reverts commit 19ced195b842d9521220f76b8dd7da8c929ad8ee.
Diffstat (limited to 'src/mongo/bson/util')
-rw-r--r-- | src/mongo/bson/util/bson_extract_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/util/bson_extract_test.cpp b/src/mongo/bson/util/bson_extract_test.cpp index 7681fbbf7a4..6778c01aa94 100644 --- a/src/mongo/bson/util/bson_extract_test.cpp +++ b/src/mongo/bson/util/bson_extract_test.cpp @@ -140,7 +140,7 @@ TEST(ExtractBSON, ExtractIntegerField) { ASSERT_EQUALS(-(1LL << 55), v); ASSERT_OK(bsonExtractIntegerField(BSON("a" << 5178), "a", &v)); ASSERT_EQUALS(5178, v); - auto pred = stdx::bind(std::greater<long long>(), stdx::placeholders::_1, 0); + auto pred = [](long long x) { return x > 0; }; ASSERT_OK(bsonExtractIntegerFieldWithDefaultIf(BSON("a" << 1), "a", -1LL, pred, &v)); ASSERT_OK(bsonExtractIntegerFieldWithDefaultIf(BSON("a" << 1), "b", 1LL, pred, &v)); auto msg = "'a' has to be greater than zero"; |