From c29ec8c37b2d43370bab09c6f92eb427deb0f907 Mon Sep 17 00:00:00 2001 From: greg Date: Sat, 15 Jun 2019 19:54:11 -0400 Subject: [PATCH] fix compilation error --- examples/allmaps.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/allmaps.cc b/examples/allmaps.cc index 83e4a33..af2dfc7 100644 --- a/examples/allmaps.cc +++ b/examples/allmaps.cc @@ -7,7 +7,7 @@ template void test_set(F &f) { Set s; - Set::iterator it; + typename Set::iterator it; for (int i=0; i<100; ++i) s.insert(f(i)); @@ -21,7 +21,7 @@ void test_set(F &f) it = s.begin(); } -int main(int argc, char ** argv) +int main(int, char **) { using namespace std; @@ -54,6 +54,4 @@ int main(int argc, char ** argv) test_set>(make_2int); test_set>(make_2string); - - }