[PATCH] D23685: [libcxx] [test] Include the iterator header for back_inserter.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 18 11:45:43 PDT 2016


STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.

Code was recently added to this test that uses std::back_inserter. Therefore, the header <iterator> must be included. (MSVC's STL demands this, as we don't otherwise drag in back_inserter.)

https://reviews.llvm.org/D23685

Files:
  test/std/containers/associative/map/map.cons/copy_assign.pass.cpp

Index: test/std/containers/associative/map/map.cons/copy_assign.pass.cpp
===================================================================
--- test/std/containers/associative/map/map.cons/copy_assign.pass.cpp
+++ test/std/containers/associative/map/map.cons/copy_assign.pass.cpp
@@ -17,6 +17,7 @@
 #include <cassert>
 #include <vector>
 #include <algorithm>
+#include <iterator>
 
 #include <iostream>
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23685.68584.patch
Type: text/x-patch
Size: 406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160818/e24f9f50/attachment.bin>


More information about the cfe-commits mailing list