const boost::array or boost::array?

What is difference between these two? Which one you would prefer when you need a fixed size array of constant values?

const boost::array<int, 2> x = {0, 1};
boost::array<const int, 2> y = {0, 1};

Thanks.

5
задан Xeo 9 April 2011 в 09:10
поделиться