Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2003-02-18 07:48:22


Hi there,

currently the constructors test of the multi array library fails for
VACPP6. This is due to the fact that the test uses an unsigned int
where a size_type should be used.

The attached patch replaces the unsigned int with size_t which allows
the test to pass for VACPP6 and hopefully doesn't break it for anyone
else.

Markus

Index: constructors.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/multi_array/test/constructors.cpp,v
retrieving revision 1.3
diff -c -r1.3 constructors.cpp
*** constructors.cpp 15 Jul 2002 22:19:16 -0000 1.3
--- constructors.cpp 18 Feb 2003 12:33:16 -0000
***************
*** 12,18 ****
  
  template <class Array>
  void check_shape(const Array& A,
! unsigned int* sizes,
                   int* strides,
                   unsigned int num_elements)
  {
--- 12,18 ----
  
  template <class Array>
  void check_shape(const Array& A,
! size_t * sizes,
                   int* strides,
                   unsigned int num_elements)
  {
***************
*** 23,29 ****
    check_shape(A[0], ++sizes, ++strides, num_elements / A.size());
  }
  
! void check_shape(const double&, unsigned int*, int*, unsigned int)
  {}
  
  template <typename ArrayA, typename ArrayB>
--- 23,29 ----
    check_shape(A[0], ++sizes, ++strides, num_elements / A.size());
  }
  
! void check_shape(const double&, size_t*, int*, unsigned int)
  {}
  
  template <typename ArrayA, typename ArrayB>


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