Only include bits/stl_algo.h for C++20.

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
This commit is contained in:
Edward Smith-Rowland 2018-11-29 15:17:17 +00:00 committed by Edward Smith-Rowland
parent fe907c1fd2
commit 355c62ce02
4 changed files with 16 additions and 3 deletions

View 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.

View 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>

View 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>

View 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>