Boost logo

Boost Users :

From: Michael Marcin (mmarcin_at_[hidden])
Date: 2006-08-08 22:33:48


At least under MSVC 8 I can do:

boost::array< boost::array<int,2>, 4 > foo = { -1,1, 0,0, 1,-1, 2,-2 };

or

int foo[4][2] = { {-1,1}, {0,0}, {1,-1}, {2,-2} };

or

boost::array<int,2> foo[4] = { {-1,1}, {0,0}, {1,-1}, {2,-2} };

but not

boost::array< boost::array<int,2>, 4 > foo = { {-1,1}, {0,0}, {1,-1},
{2,-2} };

just wondering why this is the case.


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