diff options
author | Brad King <brad.king@kitware.com> | 2005-04-15 22:49:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-15 22:49:21 (GMT) |
commit | c290726b8ffe7d979c730815f28f37b8b14188fb (patch) | |
tree | ed3f16678c934bed1c4c7c690191216f950d5689 | |
parent | 78d14911730b19d776eddaf5f71c355a03aa882c (diff) | |
download | CMake-c290726b8ffe7d979c730815f28f37b8b14188fb.zip CMake-c290726b8ffe7d979c730815f28f37b8b14188fb.tar.gz CMake-c290726b8ffe7d979c730815f28f37b8b14188fb.tar.bz2 |
BUG: Fix iterator traits test to use a real iterator instead of int*.
-rw-r--r-- | Source/kwsys/kwsysPlatformCxxTests.cxx | 9 |
1 files 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 <iterator> -void f(kwsys_stl::iterator_traits<int*>::iterator_category const&) {} +#include <list> +void f(kwsys_stl::iterator_traits<kwsys_stl::list<int>::iterator>::iterator_category const&) {} int main() { return 0; } #endif #ifdef TEST_KWSYS_STL_HAS_ITERATOR_CATEGORY #include <iterator> -void f(int* x) { kwsys_stl::iterator_category(x); } +#include <list> +void f(kwsys_stl::list<int>::iterator x) { kwsys_stl::iterator_category(x); } int main() { return 0; } #endif #ifdef TEST_KWSYS_STL_HAS___ITERATOR_CATEGORY #include <iterator> -void f(int* x) { kwsys_stl::__iterator_category(x); } +#include <list> +void f(kwsys_stl::list<int>::iterator x) { kwsys_stl::__iterator_category(x); } int main() { return 0; } #endif |