aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-07-14 16:43:17 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2016-07-14 16:43:17 +0100
commitea5ec6b7e0f8b2e3cc4bce670651aedc33211a46 (patch)
tree3cf0c066b227b762661208866eb3db92876acf26
parent47d5cb3c3b367f8ef30d909b41a44f9ef5fd4327 (diff)
downloadgcc-ea5ec6b7e0f8b2e3cc4bce670651aedc33211a46.zip
gcc-ea5ec6b7e0f8b2e3cc4bce670651aedc33211a46.tar.gz
gcc-ea5ec6b7e0f8b2e3cc4bce670651aedc33211a46.tar.bz2
Include header for std::__parallel::search
* include/experimental/functional: Include <parallel/algorithm> in Parallel Mode. From-SVN: r238342
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/include/experimental/functional3
2 files changed, 6 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index a47781c..6808613 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/include/experimental/functional b/libstdc++-v3/include/experimental/functional
index 2095310..ed41f5a 100644
--- a/libstdc++-v3/include/experimental/functional
+++ b/libstdc++-v3/include/experimental/functional
@@ -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)
{