[Cmake-commits] CMake branch, master, updated. v2.8.5-293-g89f420a

KWSys Robot kwrobot at kitware.com
Thu Sep 1 08:22:17 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
       via  89f420abdefd387ec600e958f4aef15295b9daa4 (commit)
      from  8e6352f8dbeedff1f529a800173b19d52ff69b6b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=89f420abdefd387ec600e958f4aef15295b9daa4
commit 89f420abdefd387ec600e958f4aef15295b9daa4
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Sep 1 08:20:43 2011 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Thu Sep 1 08:22:03 2011 -0400

    KWSys: Fix std::string hash function for Borland
    
    Borland ignores "const" qualifiers in template specializations.

diff --git a/Source/kwsys/hash_fun.hxx.in b/Source/kwsys/hash_fun.hxx.in
index 2a1305e..8c5eb6a 100644
--- a/Source/kwsys/hash_fun.hxx.in
+++ b/Source/kwsys/hash_fun.hxx.in
@@ -71,10 +71,12 @@ struct hash<const char*> {
   size_t operator()(const @KWSYS_NAMESPACE at _stl::string & __s) const { return _stl_hash_string(__s.c_str()); }
 };
 
+#if !defined(__BORLANDC__)
 @KWSYS_NAMESPACE at _CXX_DEFINE_SPECIALIZATION
   struct hash<const @KWSYS_NAMESPACE at _stl::string> {
   size_t operator()(const @KWSYS_NAMESPACE at _stl::string & __s) const { return _stl_hash_string(__s.c_str()); }
 };
+#endif
 
 @KWSYS_NAMESPACE at _CXX_DEFINE_SPECIALIZATION
 struct hash<char> {

-----------------------------------------------------------------------

Summary of changes:
 Source/kwsys/hash_fun.hxx.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list