[PATCH] D22012: [libcxx] [tests] Add missing includes, especially <functional>, to priority.queue/types.pass.cpp.
Stephan T. Lavavej via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 5 13:44:09 PDT 2016
STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
Add missing includes, especially <functional>, to priority.queue/types.pass.cpp.
This is required according to the Standard, and it fixes compiler errors with MSVC (as our headers don't usually drag in std::greater).
http://reviews.llvm.org/D22012
Files:
test/std/containers/container.adaptors/priority.queue/types.pass.cpp
Index: test/std/containers/container.adaptors/priority.queue/types.pass.cpp
===================================================================
--- test/std/containers/container.adaptors/priority.queue/types.pass.cpp
+++ test/std/containers/container.adaptors/priority.queue/types.pass.cpp
@@ -27,7 +27,11 @@
#include <queue>
#include <cassert>
+#include <deque>
+#include <functional>
+#include <memory>
#include <type_traits>
+#include <vector>
struct test
: private std::priority_queue<int>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22012.62783.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160705/82660b94/attachment.bin>
More information about the cfe-commits
mailing list