diff options
Diffstat (limited to 'src/mongo/util/queue.h')
-rw-r--r-- | src/mongo/util/queue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/queue.h b/src/mongo/util/queue.h index 6cc79d5d47f..63321eeb926 100644 --- a/src/mongo/util/queue.h +++ b/src/mongo/util/queue.h @@ -30,12 +30,12 @@ #pragma once #include <boost/optional.hpp> +#include <functional> #include <limits> #include <queue> #include "mongo/stdx/chrono.h" #include "mongo/stdx/condition_variable.h" -#include "mongo/stdx/functional.h" #include "mongo/stdx/mutex.h" namespace mongo { @@ -54,7 +54,7 @@ class BlockingQueue { BlockingQueue& operator=(const BlockingQueue&) = delete; public: - using GetSizeFn = stdx::function<size_t(const T&)>; + using GetSizeFn = std::function<size_t(const T&)>; BlockingQueue() : BlockingQueue(std::numeric_limits<std::size_t>::max()) {} BlockingQueue(size_t size) : BlockingQueue(size, [](const T&) { return 1; }) {} |