Update of /cvsroot/boost/boost/libs/multi_array/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3073/libs/multi_array/test

Modified Files:
        generative_tests.hpp 
Log Message:
made sure templatized overload version of reindex is not unintendedly selected 
in SFINAE-lacking compilers due to integral conversions

Index: generative_tests.hpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/multi_array/test/generative_tests.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- generative_tests.hpp        8 Dec 2005 17:56:37 -0000       1.8
+++ generative_tests.hpp        26 Jun 2006 06:45:14 -0000      1.9
@@ -49,6 +49,7 @@
 
 #include "boost/test/minimal.hpp"
 
+#include <boost/config.hpp> /* BOOST_NO_SFINAE */
 #include <algorithm>
 #include <iostream>
 #include <vector>
@@ -239,8 +240,12 @@
 struct set_index_base_modifier {
   template <typename Array>
   void modify(Array& A) const {
+#ifdef BOOST_NO_SFINAE
     typedef boost::multi_array_types::index index;
-    A.reindex(1); 
+    A.reindex(index(1));
+#else
+    A.reindex(1);
+#endif 
   }
 };
 


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to