[PATCH] Add header for std::search to testcase

Jonathan Wakely jwakely@redhat.com
Thu Jul 14 15:29:00 GMT 2016


	* testsuite/experimental/functional/searchers.cc: Include <algorithm>
	for std::search.

This test was failing in Parallel Mode, because it wasn't including
the <algorithm> header for std::search.

Tested x86_64-linux, committed to trunk.

-------------- next part --------------
commit ca8663b7b1451f4ca0097af7eb902367970f7b33
Author: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Jul 14 15:27:09 2016 +0000

    Add header for std::search to testcase
    
    	* testsuite/experimental/functional/searchers.cc: Include <algorithm>
    	for std::search.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238341 138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/libstdc++-v3/testsuite/experimental/functional/searchers.cc b/libstdc++-v3/testsuite/experimental/functional/searchers.cc
index 5e585f8..143593f 100644
--- a/libstdc++-v3/testsuite/experimental/functional/searchers.cc
+++ b/libstdc++-v3/testsuite/experimental/functional/searchers.cc
@@ -22,6 +22,7 @@
 #ifdef _GLIBCXX_USE_WCHAR_T
 # include <cwchar>
 #endif
+#include <algorithm>
 #include <testsuite_hooks.h>
 
 using std::experimental::make_default_searcher;


More information about the Libstdc++ mailing list