Include header for std::__parallel::search
authorJonathan Wakely <jwakely@redhat.com>
Thu, 14 Jul 2016 15:43:17 +0000 (16:43 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 14 Jul 2016 15:43:17 +0000 (16:43 +0100)
* include/experimental/functional: Include <parallel/algorithm> in
Parallel Mode.

From-SVN: r238342

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)
 {