aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-10-01 12:55:53 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-10-01 15:04:02 +0100
commit94311bf34704ebecf745043fe2df03df201052fe (patch)
treea8ec1b759a307e9f0881a7aa16c61053559084a4
parent901fa4cc27ce693b361220818732556bfa586eea (diff)
downloadgcc-94311bf34704ebecf745043fe2df03df201052fe.zip
gcc-94311bf34704ebecf745043fe2df03df201052fe.tar.gz
gcc-94311bf34704ebecf745043fe2df03df201052fe.tar.bz2
libstdc++: Add missing header to test
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>.
-rw-r--r--libstdc++-v3/testsuite/25_algorithms/is_permutation/2.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/25_algorithms/is_permutation/2.cc b/libstdc++-v3/testsuite/25_algorithms/is_permutation/2.cc
index 8d15c22..252226c 100644
--- a/libstdc++-v3/testsuite/25_algorithms/is_permutation/2.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/is_permutation/2.cc
@@ -20,6 +20,7 @@
// 25.2.12 [alg.is_permutation] Is permutation
#include <algorithm>
+#include <iterator>
#include <functional>
#include <testsuite_hooks.h>