6 Jun
2007
6 Jun
'07
3:58 a.m.
Doesn't appear to. The following compiles against CVS of 5 minutes ago, without error: #include
#include #include boost::array
arr = {{ 1, 2, 3}}; int x() { // arr[4] return boost::fusion::at_c<4>(arr); }
It compiles down to a call to __assert_fail, which is the same behaviour as just using arr[4].
Following all the #includes and templates, I guess it's that boost/fusion/sequence/adapted/array/detail/at_impl.hpp lines 36-40 should probably have a BOOST_STATIC_ASSERT in there?
-- BenoƮt
You might want to drop an email to the boost devel list about possibly changing this for fusion. This makes sense to me, but the developers of fusion might think otherwise. Chris