Neal Becker
2009-10-30 17:25:04 UTC
This patch is needed to compile in debug mode
diff --git a/src/cpp/pyublas/numpy.hpp b/src/cpp/pyublas/numpy.hpp
index 2355023..90acfee 100644
--- a/src/cpp/pyublas/numpy.hpp
+++ b/src/cpp/pyublas/numpy.hpp
@@ -739,7 +739,7 @@ namespace pyublas
const boost::numeric::ublas::vector_expression<AE> &ae)
: super(ae)
{
- assert(size() == size_from_dims(ndim_, dims_));
+ assert(this->size() == size_from_dims(ndim_, dims_));
array().reshape(ndim_, dims_);
}
diff --git a/src/cpp/pyublas/numpy.hpp b/src/cpp/pyublas/numpy.hpp
index 2355023..90acfee 100644
--- a/src/cpp/pyublas/numpy.hpp
+++ b/src/cpp/pyublas/numpy.hpp
@@ -739,7 +739,7 @@ namespace pyublas
const boost::numeric::ublas::vector_expression<AE> &ae)
: super(ae)
{
- assert(size() == size_from_dims(ndim_, dims_));
+ assert(this->size() == size_from_dims(ndim_, dims_));
array().reshape(ndim_, dims_);
}