summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/hashtable.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-15 12:59:30 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-15 12:59:30 (GMT)
commit7f706ecc984abc81de62baa85892ecca81375bf7 (patch)
treefc93c6217ce3dae6cac0beef6f39e5e1c7c9fd47 /Source/kwsys/hashtable.hxx.in
parentd3a69766df78d4ee0186a592c05952280f043d3a (diff)
downloadCMake-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/hashtable.hxx.in')
-rw-r--r--Source/kwsys/hashtable.hxx.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in
index 80f633c..cb2f19f 100644
--- a/Source/kwsys/hashtable.hxx.in
+++ b/Source/kwsys/hashtable.hxx.in
@@ -1087,6 +1087,14 @@ void hashtable<_Val,_Key,_HF,_Ex,_Eq,_All>
} // namespace @KWSYS_NAMESPACE@
+// Normally the comparison operators should be found in the @KWSYS_NAMESPACE@
+// namespace by argument dependent lookup. For compilers that do not
+// support it we must bring them into the global namespace now.
+#if !@KWSYS_NAMESPACE@_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP
+using @KWSYS_NAMESPACE@::operator==;
+using @KWSYS_NAMESPACE@::operator!=;
+#endif
+
#if defined(_MSC_VER)
# pragma warning (pop)
#endif