Commits

Anonymous committed 7077d1e

Fix gcc 4.3 warnings.

Comments (0)

Files changed (3)

+2008-12-11  scott snyder  <snyder@bnl.gov>
+
+	* Tagging CxxUtils-00-00-10.
+	* CxxUtils/hashtable.h: Fix gcc 4.3 warnings.
+	* cmt/requirements: We depend on boost now.
+
 2008-12-09  David Quarrie <David.Quarrie@cern.ch>
 
 	* tagging CxxUtils-00-00-09

CxxUtils/hashtable.h

 // This file's extension implies that it's C, but it's really -*- C++ -*-.
-// $Id: hashtable.h,v 1.3 2008-12-09 12:13:06 dquarrie Exp $
+// $Id: hashtable.h,v 1.4 2008-12-11 18:57:44 ssnyder Exp $
 /**
  * @file CxxUtils/hashtable.h
  * @author scott snyder <snyder@bnl.gov>, copied from gcc4.
 #include <cstdlib>
 #include <cmath>
 #include <limits>
+#include "boost/type_traits/remove_const.hpp" // sss
 //#include <bits/functexcept.h> sss
 //#include <tr1/type_traits>	// For true_type and false_type sss
 
   template<typename Pair>
     struct extract1st
     {
-      typename Pair::first_type
+      // sss remove const to prevent warnings with gcc 4.3
+      typename
+        boost::remove_const<typename Pair::first_type>::type
       operator()(const Pair& p) const
       { return p.first; }
     };
 use AtlasPolicy 	AtlasPolicy-*
 
 ## Put here your package dependencies...
-#use AtlasBoost	 	AtlasBoost-*		External 
+use AtlasBoost	 	AtlasBoost-*		External 
 ##
 
 branches CxxUtils src doc share