Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2004-09-18 22:09:18


Cromwell Enage <sponage_at_[hidden]> writes:

> The attached program fails to compile if
> BOOST_HAS_LONG_LONG is defined. The error is mainly
> about integral_rank<long long int> not having a static
> member named 'value'. Is integral_c not meant to be
> used with long long?

Try again with latest CVS.

Index: largest_int.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/mpl/aux_/largest_int.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -d -u -b -u -r1.4 -r1.5
--- largest_int.hpp 7 Sep 2004 09:06:10 -0000 1.4
+++ largest_int.hpp 19 Sep 2004 03:08:53 -0000 1.5
@@ -11,8 +11,8 @@
 // See http://www.boost.org/libs/mpl for documentation.
 
 // $Source: /cvsroot/boost/boost/boost/mpl/aux_/largest_int.hpp,v $
-// $Date: 2004/09/07 09:06:10 $
-// $Revision: 1.4 $
+// $Date: 2004/09/19 03:08:53 $
+// $Revision: 1.5 $
 
 #include <boost/mpl/if.hpp>
 #include <boost/mpl/int.hpp>
@@ -37,6 +37,11 @@
 template<> struct integral_rank<long> : int_<10> {};
 template<> struct integral_rank<unsigned long> : int_<11> {};
 
+#if defined(BOOST_HAS_LONG_LONG)
+template<> struct integral_rank<long_long_type> : int_<12> {};
+template<> struct integral_rank<ulong_long_type>: int_<13> {};
+#endif
+
 template< typename T1, typename T2 > struct largest_int
 #if !defined(BOOST_MPL_CFG_NO_NESTED_VALUE_ARITHMETIC)
     : if_c<

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net