Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-02-11 12:23:02


John Gerschwitz <johng_at_[hidden]> 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

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