mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 06:20:23 +00:00
BUG: Fix iterator traits test to use a real iterator instead of int*.
This commit is contained in:
parent
78d1491173
commit
c290726b8f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user