
16 Sep
2010
16 Sep
'10
2:36 a.m.
On 9/15/2010 10:14 PM, Suresh Kumar wrote:
Hi I was trying to use boost::multi_array in a project where I am already using eigen2. The following lines does not compile in my code, though it compiles correctly outside my project ie as a standalone program where eigen is not used.
typedef multi_array
array_type; array_type scores(extents[1][1]); compiler error: ‘extents’ is not a type
Any suggestions?
Looks like the Most Vexing Parse. Try adding parens: array_type scores((extents[1][1])); -- Eric Niebler BoostPro Computing http://www.boostpro.com