Boost logo

Boost :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2002-10-31 05:10:39


to make the test-program compile on IBM/VisualAge.

I've just put the equal function to compare two int's before the templated
equal (intended for matrices) sine the former is used in the latter
(should'nt have compiled on other platforms neither IMO)

Index: assign.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/multi_array/test/assign.cpp,v
retrieving revision 1.2
diff -u -r1.2 assign.cpp
--- assign.cpp 14 Aug 2002 22:29:36 -0000 1.2
+++ assign.cpp 31 Oct 2002 10:04:06 -0000
@@ -9,6 +9,11 @@
 #include <algorithm>
 #include <iostream>

+bool equal(const int& a, const int& b)
+{
+ return a == b;
+}
+
 template <typename ArrayA, typename ArrayB>
 bool equal(const ArrayA& A, const ArrayB& B)
 {
@@ -18,11 +23,6 @@
     if (!equal(*ia, *ib))
       return false;
   return true;
-}
-
-bool equal(const int& a, const int& b)
-{
- return a == b;
 }


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