diff options
author | Brad King <brad.king@kitware.com> | 2005-04-15 12:59:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-15 12:59:30 (GMT) |
commit | 7f706ecc984abc81de62baa85892ecca81375bf7 (patch) | |
tree | fc93c6217ce3dae6cac0beef6f39e5e1c7c9fd47 /Source/kwsys/kwsysPlatformCxxTests.cxx | |
parent | d3a69766df78d4ee0186a592c05952280f043d3a (diff) | |
download | CMake-7f706ecc984abc81de62baa85892ecca81375bf7.zip CMake-7f706ecc984abc81de62baa85892ecca81375bf7.tar.gz CMake-7f706ecc984abc81de62baa85892ecca81375bf7.tar.bz2 |
ENH: Added KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP try-compile to KWSys. Needed to optionally bring hash table comparison operators into the global namespace when argument dependent lookup is not supported.
Diffstat (limited to 'Source/kwsys/kwsysPlatformCxxTests.cxx')
-rw-r--r-- | Source/kwsys/kwsysPlatformCxxTests.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/kwsys/kwsysPlatformCxxTests.cxx b/Source/kwsys/kwsysPlatformCxxTests.cxx index 74e83bd..9edbfc0 100644 --- a/Source/kwsys/kwsysPlatformCxxTests.cxx +++ b/Source/kwsys/kwsysPlatformCxxTests.cxx @@ -108,6 +108,20 @@ template <> struct A<int*> int main() { return A<int*>::f(); } #endif +#ifdef TEST_KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP +namespace N +{ + class A {}; + int f(A*) { return 0; } +} +void f(void*); +int main() +{ + N::A* a = 0; + return f(a); +} +#endif + #ifdef TEST_KWSYS_STL_HAS_ALLOCATOR_REBIND #include <memory> template <class T, class Alloc> |