Cast from C array to Boost::Array
http://d.hatena.ne.jp/kamekamekame877/20090627 での配列からのキャストを使った応用。
BOOST_STATIC_ASSERT(sizeof(int[10]) == sizeof(boost::array<int, 10>)); int a[10]; boost::array<int, 10> &b = *reinterpret_cast<boost::array<int, 10>*>(a);