From c290726b8ffe7d979c730815f28f37b8b14188fb Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 15 Apr 2005 18:49:21 -0400 Subject: BUG: Fix iterator traits test to use a real iterator instead of int*. --- Source/kwsys/kwsysPlatformCxxTests.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/kwsys/kwsysPlatformCxxTests.cxx b/Source/kwsys/kwsysPlatformCxxTests.cxx index 44c0432..cb9fd06 100644 --- a/Source/kwsys/kwsysPlatformCxxTests.cxx +++ b/Source/kwsys/kwsysPlatformCxxTests.cxx @@ -130,19 +130,22 @@ int main() #ifdef TEST_KWSYS_STL_HAS_ITERATOR_TRAITS #include -void f(kwsys_stl::iterator_traits::iterator_category const&) {} +#include +void f(kwsys_stl::iterator_traits::iterator>::iterator_category const&) {} int main() { return 0; } #endif #ifdef TEST_KWSYS_STL_HAS_ITERATOR_CATEGORY #include -void f(int* x) { kwsys_stl::iterator_category(x); } +#include +void f(kwsys_stl::list::iterator x) { kwsys_stl::iterator_category(x); } int main() { return 0; } #endif #ifdef TEST_KWSYS_STL_HAS___ITERATOR_CATEGORY #include -void f(int* x) { kwsys_stl::__iterator_category(x); } +#include +void f(kwsys_stl::list::iterator x) { kwsys_stl::__iterator_category(x); } int main() { return 0; } #endif -- cgit v0.12