Boost logo

Boost Users :

Subject: Re: [Boost-users] multi_array: error: expected primary-expression before ‘)’
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-08-30 22:35:17


AMDG

Valmor de Almeida wrote:
> I am trying from the multi_array web site doc:
>
> typedef boost::multi_array<double,3> array_type;
> array_type A(boost::extents[3][4][2],boost::fortran_storage_order);
>
> and getting the following compile-time error:
>
> g++ img2hermes2dmsh.cpp
> In function ‘int main()’:
> error: expected primary-expression before ‘)’ token
>
> Any insights? I am using boost-1.41 on gentoo linux.
>

boost::fortran_storage_order is a type. Try
boost::fortran_storage_order().

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net