This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Add missing C++11 and C++14 headers to bits/stdc++.h


<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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]