]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Include header for std::__parallel::search
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jul 2016 15:43:17 +0000 (15:43 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jul 2016 15:43:17 +0000 (15:43 +0000)
* include/experimental/functional: Include <parallel/algorithm> in
Parallel Mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238342 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/functional

index a47781c61f10167112e9afad1e98bd4726ad7ffd..68086139cbd9a31ee5e4c052c1dbb3d7cdc2d7d1 100644 (file)
@@ -1,5 +1,8 @@
 2016-07-14  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/experimental/functional: Include <parallel/algorithm> in
+       Parallel Mode.
+
        * testsuite/experimental/functional/searchers.cc: Include <algorithm>
        for std::search.
 
index 209531093856d08ffe560fb441986ba8b7be6397..ed41f5a3982d47d91f2c48fa4f46758418bbbda4 100644 (file)
@@ -42,6 +42,9 @@
 #include <vector>
 #include <array>
 #include <bits/stl_algo.h>
+#ifdef _GLIBCXX_PARALLEL
+# include <parallel/algorithm> // For std::__parallel::search
+#endif
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {