]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add missing header to test
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Oct 2021 11:55:53 +0000 (12:55 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 12 Oct 2021 10:45:42 +0000 (11:45 +0100)
We need to include <iterator> (or one of the containers) to get a
definition for std::begin.

libstdc++-v3/ChangeLog:

* testsuite/25_algorithms/is_permutation/2.cc: Include <iterator>.

(cherry picked from commit 94311bf34704ebecf745043fe2df03df201052fe)

libstdc++-v3/testsuite/25_algorithms/is_permutation/2.cc

index 8d15c22f593d770e40c5fe3e75e0f94018a3749a..252226ca08fbb71b103e43780d5ee5e297b56cb5 100644 (file)
@@ -20,6 +20,7 @@
 // 25.2.12 [alg.is_permutation] Is permutation
 
 #include <algorithm>
+#include <iterator>
 #include <functional>
 #include <testsuite_hooks.h>