Only include bits/stl_algo.h for C++20.
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Thu, 29 Nov 2018 15:17:17 +0000 (15:17 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Thu, 29 Nov 2018 15:17:17 +0000 (15:17 +0000)
2018-11-29  Edward Smith-Rowland  <3dw4rd@verizon.net>

Only include bits/stl_algo.h for C++20.
* include/std/deque: Only include bits/stl_algo.h for C++20.
* include/std/string: Ditto.
* include/std/vector: Ditto.

From-SVN: r266624

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/deque
libstdc++-v3/include/std/string
libstdc++-v3/include/std/vector

index 82a6e532f908358e71b055bda38b0d6eff02f9be..037325ea554a2e5428c522d3d98cbb70a8a62344 100644 (file)
@@ -1,3 +1,10 @@
+2018-11-29  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       Only include bits/stl_algo.h for C++20.
+       * include/std/deque: Only include bits/stl_algo.h for C++20.
+       * include/std/string: Ditto.
+       * include/std/vector: Ditto.
+
 2018-11-29  Edward Smith-Rowland  <3dw4rd@verizon.net>
 
        Fix erasure goofs.
index 764e1f17948f6f72b124d8d98d39c7e3fe0907b1..25de200cefd208442ba660aae17b710adbdfd308 100644 (file)
@@ -58,7 +58,9 @@
 #pragma GCC system_header
 
 #include <bits/stl_algobase.h>
-#include <bits/stl_algo.h> // For remove and remove_if
+#if __cplusplus > 201703L
+#  include <bits/stl_algo.h> // For remove and remove_if
+#endif // C++20
 #include <bits/allocator.h>
 #include <bits/stl_construct.h>
 #include <bits/stl_uninitialized.h>
index 33cb5e6738c76e90ba0aa7ce6325e22edf46e137..87b31839fcf54e79345ec103f2d32e7a11cef5f4 100644 (file)
@@ -48,7 +48,9 @@
 #include <bits/stl_function.h> // For less
 #include <ext/numeric_traits.h>
 #include <bits/stl_algobase.h>
-#include <bits/stl_algo.h> // For remove and remove_if
+#if __cplusplus > 201703L
+#  include <bits/stl_algo.h> // For remove and remove_if
+#endif // C++20
 #include <bits/range_access.h>
 #include <bits/basic_string.h>
 #include <bits/basic_string.tcc>
index 720e0eb9cc3e79a46734af4dcde8a2b38c15bcce..ef04d759d53e2562f003c216119fb3ab6c1ebf71 100644 (file)
@@ -58,7 +58,9 @@
 #pragma GCC system_header
 
 #include <bits/stl_algobase.h>
-#include <bits/stl_algo.h> // For remove and remove_if
+#if __cplusplus > 201703L
+#  include <bits/stl_algo.h> // For remove and remove_if
+#endif // C++20
 #include <bits/allocator.h>
 #include <bits/stl_construct.h>
 #include <bits/stl_uninitialized.h>