[gcc r10-10183] libstdc++: Add missing header to test

Jonathan Wakely redi@gcc.gnu.org
Tue Oct 12 16:28:05 GMT 2021


https://gcc.gnu.org/g:eed9ecc59547aa38fe0354c5e108b08a75183fe5

commit r10-10183-geed9ecc59547aa38fe0354c5e108b08a75183fe5
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Oct 1 12:55:53 2021 +0100

    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>.
    
    (cherry picked from commit 94311bf34704ebecf745043fe2df03df201052fe)

Diff:
---
 libstdc++-v3/testsuite/25_algorithms/is_permutation/2.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libstdc++-v3/testsuite/25_algorithms/is_permutation/2.cc b/libstdc++-v3/testsuite/25_algorithms/is_permutation/2.cc
index f2c28412515..e7ce1f3e184 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>


More information about the Libstdc++-cvs mailing list