Boost.Python proposed patch 1.31.0

It would appear numeric.cpp has some () missing. This means calls to functions such as nelements fail. The text "isaligned" replaced with "iscontiguous" in iscontiguous call. John Gerschwitz *** numeric.cpp.orig 2004-02-11 10:57:50.000000000 +1000 --- numeric.cpp 2004-02-11 11:00:33.000000000 +1000 *************** *** 226,247 **** bool array_base::isaligned() const { ! return extract<bool>(attr("isaligned")); } bool array_base::iscontiguous() const { ! return extract<bool>(attr("isaligned")); } long array_base::itemsize() const { ! return extract<long>(attr("itemsize")); } long array_base::nelements() const { ! return extract<long>(attr("nelements")); } object array_base::nonzero() const --- 226,247 ---- bool array_base::isaligned() const { ! return extract<bool>(attr("isaligned")()); } bool array_base::iscontiguous() const { ! return extract<bool>(attr("iscontiguous")()); } long array_base::itemsize() const { ! return extract<long>(attr("itemsize")()); } long array_base::nelements() const { ! return extract<long>(attr("nelements")()); } object array_base::nonzero() const

John Gerschwitz <johng@quakes.uq.edu.au> writes:
It would appear numeric.cpp has some () missing. This means calls to functions such as nelements fail. The text "isaligned" replaced with "iscontiguous" in iscontiguous call.
Hi John, Can you propose a patch for the numeric test in libs/python/test that will detect the current problem (the one your patch below fixes)? Thanks, Dave
John Gerschwitz *** numeric.cpp.orig 2004-02-11 10:57:50.000000000 +1000 --- numeric.cpp 2004-02-11 11:00:33.000000000 +1000 *************** *** 226,247 ****
bool array_base::isaligned() const { ! return extract<bool>(attr("isaligned")); }
bool array_base::iscontiguous() const { ! return extract<bool>(attr("isaligned")); }
long array_base::itemsize() const { ! return extract<long>(attr("itemsize")); }
long array_base::nelements() const { ! return extract<long>(attr("nelements")); }
object array_base::nonzero() const --- 226,247 ----
bool array_base::isaligned() const { ! return extract<bool>(attr("isaligned")()); }
bool array_base::iscontiguous() const { ! return extract<bool>(attr("iscontiguous")()); }
long array_base::itemsize() const { ! return extract<long>(attr("itemsize")()); }
long array_base::nelements() const { ! return extract<long>(attr("nelements")()); }
object array_base::nonzero() const _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
John Gerschwitz