BUG: Fix iterator traits test to use a real iterator instead of int*.

This commit is contained in:
Brad King 2005-04-15 18:49:21 -04:00
parent 78d1491173
commit c290726b8f
1 changed files with 6 additions and 3 deletions

View File

@ -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