Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-09-26 04:53:30


Hello,

attached are two small patches for MPL which fix some of the type_traits
tests for vacpp 5.02. The tests that additionally pass with this patch
are arithmetic_traits_test, cv_traits_test, is_convertible_test and
is_same_test.

BTW, are the mpl tests missing from the status/Jamfile on purpose?

Markus

Index: bool_c.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/mpl/bool_c.hpp,v
retrieving revision 1.2
diff -c -r1.2 bool_c.hpp
*** bool_c.hpp 15 Sep 2002 22:13:23 -0000 1.2
--- bool_c.hpp 26 Sep 2002 09:43:34 -0000
***************
*** 30,35 ****
--- 30,39 ----
      operator bool() const { return this->value; }
  };
  
+ #ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
+ template <bool C> bool const bool_c<C>::value;
+ #endif
+
  // shorcuts
  typedef bool_c<true> true_c;
  typedef bool_c<false> false_c;

Index: integral_c.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/mpl/integral_c.hpp,v
retrieving revision 1.7
diff -c -r1.7 integral_c.hpp
*** integral_c.hpp 17 Sep 2002 18:17:24 -0000 1.7
--- integral_c.hpp 26 Sep 2002 09:44:25 -0000
***************
*** 53,58 ****
--- 53,62 ----
      operator T() const { return this->value; }
  };
  
+ #ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
+ template <typename T, T N> T const integral_c<T,N>::value;
+ #endif
+
  #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
   && (!defined(BOOST_MSVC) || BOOST_MSVC != 1301) \
   && !defined(__BORLANDC__)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk