]> git.lyx.org Git - features.git/commitdiff
possible fix for the cxx compile problems
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 7 Jun 2001 13:46:25 +0000 (13:46 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 7 Jun 2001 13:46:25 +0000 (13:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2095 a592a061-630c-0410-9148-cb99ea01b6c8

boost/ChangeLog
boost/boost/crc.hpp

index 558320988235cccac9707a8173efda26a3fa4948..a42a79347c6921e094d2034e5ea62cf3a8a981b9 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-07  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * boost/crc.hpp: possible fix for the cxx compilation problems, as
+       suggested on the boost list.
+
 2001-06-01  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * boost/config.hpp: remove hack moved to config.h
index 6472c87bd6ecdf456fb07d33a30b4f078b33f2d5..2ab8aab795723e952c131ccf768533c650aa1495 100644 (file)
@@ -280,10 +280,15 @@ namespace detail
         typedef typename base_type::least  least;
         typedef typename base_type::fast   fast;
 
+#ifdef __DECCXX
+           static const least high_bit = 1ul << (Bits - 1u);
+           static const fast high_bit_fast = 1ul << (Bits - 1u);
+#else
         BOOST_STATIC_CONSTANT( least, high_bit = (least( 1u ) << ( Bits
          - 1u )) );
         BOOST_STATIC_CONSTANT( fast, high_bit_fast = (fast( 1u ) << ( Bits
          - 1u )) );
+#endif
 
     };  // boost::detail::high_uint_t
 
@@ -340,7 +345,11 @@ namespace detail
         BOOST_STATIC_CONSTANT( fast, high_bit_fast = base_type::high_bit_fast );
         #endif
 
+#ifdef __DECCXX
+           static const least sig_bits = (~( ~(0ul) << Bits));
+#else
         BOOST_STATIC_CONSTANT( least, sig_bits = (~( ~(least( 0u )) << Bits )) );
+#endif
         BOOST_STATIC_CONSTANT( fast, sig_bits_fast = fast(sig_bits) );
 
     };  // boost::detail::mask_uint_t