Commit edd5f647 authored by Brad King's avatar Brad King
Browse files

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

parent 27fb54d3
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment