From dd797bcd3840f30cd25e473743024e88f6c18bcf Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Tue, 21 Sep 2004 14:12:47 +0000 Subject: [PATCH] Add SKIP_BAD for known bad models [SVN r25311] --- include/boost/numeric/ublas/concepts.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/boost/numeric/ublas/concepts.hpp b/include/boost/numeric/ublas/concepts.hpp index b98f1580..49df5a00 100644 --- a/include/boost/numeric/ublas/concepts.hpp +++ b/include/boost/numeric/ublas/concepts.hpp @@ -546,7 +546,7 @@ namespace boost { namespace numeric { namespace ublas { static void constraints () { DefaultConstructibleConcept::constraints (); - const vector_type v = vector_type (); + vector_type v = vector_type (); size_type n (0), i (0); value_type t; // Find (internal?) @@ -629,7 +629,7 @@ namespace boost { namespace numeric { namespace ublas { static void constraints () { DefaultConstructibleConcept::constraints (); - const matrix_type m = matrix_type (); + matrix_type m = matrix_type (); size_type n (0), i (0), j (0); value_type t; // Find (internal?) @@ -742,6 +742,7 @@ namespace boost { namespace numeric { namespace ublas { typedef typename V::value_type value_type; static void constraints () { + VectorConcept::constraints (); MutableVectorExpressionConcept::constraints (); size_type n (0); value_type t = value_type (); @@ -779,6 +780,7 @@ namespace boost { namespace numeric { namespace ublas { typedef typename M::value_type value_type; static void constraints () { + MatrixConcept::constraints (); MutableMatrixExpressionConcept::constraints (); size_type n (0); value_type t = value_type (); @@ -1372,7 +1374,10 @@ namespace boost { namespace numeric { namespace ublas { symmetric_matrix::reverse_iterator2>::constraints (); MatrixExpressionConcept > >::constraints (); +#ifndef SKIP_BAD + // const_iterator (iterator) constructor is bad MutableMatrixExpressionConcept > >::constraints (); +#endif IndexedRandomAccess2DIteratorConcept >::const_iterator1, symmetric_adaptor >::const_iterator2>::constraints (); MutableIndexedRandomAccess2DIteratorConcept >::iterator1, @@ -1397,7 +1402,10 @@ namespace boost { namespace numeric { namespace ublas { hermitian_matrix::reverse_iterator2>::constraints (); MatrixExpressionConcept > >::constraints (); +#ifndef SKIP_BAD + // const_iterator (iterator) constructor is bad MutableMatrixExpressionConcept > >::constraints (); +#endif IndexedRandomAccess2DIteratorConcept >::const_iterator1, hermitian_adaptor >::const_iterator2>::constraints (); MutableIndexedRandomAccess2DIteratorConcept >::iterator1,