2010-12-13から1日間の記事一覧
[例外] std::vector<T>::at(n); [assert] std::vector<T>::operator [n]; pstade::oven::at(n);</t></t>
boost::fusion を使っててふと思ったんですが。 typedef std::size_t dimension_type; struct my_vec{ static const dimension_type dimension = 3; float x, y, z; }; BOOST_STATIC_ASSERT( my_vec::dimension == 3 ); こうやって定義するよりも……。 templa…