This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Add missing C++11 and C++14 headers to bits/stdc++.h
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Jun 2015 13:27:22 +0100
- Subject: [patch] Add missing C++11 and C++14 headers to bits/stdc++.h
- Authentication-results: sourceware.org; auth=none
<codecvt> and <shared_mutex> were not included in the precompiled
headers.
Tested powerpc64le-linux, committed to trunk.
commit 66c9926b63b5dd333f310fa621d5c495deb77681
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Jun 12 12:42:41 2015 +0100
* include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h
index 8449ec0..693391a 100644
--- a/libstdc++-v3/include/precompiled/stdc++.h
+++ b/libstdc++-v3/include/precompiled/stdc++.h
@@ -98,6 +98,7 @@
#include <array>
#include <atomic>
#include <chrono>
+#include <codecvt>
#include <condition_variable>
#include <forward_list>
#include <future>
@@ -115,3 +116,7 @@
#include <unordered_map>
#include <unordered_set>
#endif
+
+#if __cplusplus >= 201402L
+#include <shared_mutex>
+#endif