Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-12 12:52:34


"Thorsten Ottosen" <nesotto_at_[hidden]> writes:

> When I just try include <boost/multi_array.hpp> I get these errors:
>
> Comeau C/C++ 4.3.0.1 (Aug 21 2002 15:45:32) for MS_WINDOWS_x86
> Copyright 1988-2002 Comeau Computing. All rights reserved.
> MODE:strict warnings C++
>
> "E:\C++\libraries\boost_1_29_0\boost/multi_array/subarray.hpp", line 238:
> error #20:
> identifier "num_dimensions" is undefined
> assert(other.num_dimensions() == num_dimensions());
> ^

Try this-> instead:

       assert(other.num_dimensions() == this->num_dimensions());

> "E:\C++\libraries\boost_1_29_0\boost/multi_array/subarray.hpp", line 239:
> error #20:
> identifier "shape" is undefined
> assert(std::equal(other.shape(),other.shape()+num_dimensions(),
> ^

Likewise.

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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