
5 Jun
2008
5 Jun
'08
1:07 p.m.
See inline below, I'm not sure if this'll work though: Graham Reitz wrote:
Is it possible or even reasonable to initialization a boost::array in a member initialization list?
foo.h
class foo { boost::array<int,3> m_array; };
foo.cpp
... #include <boost/assign.hpp> using namespace boost::assign;
foo::foo() : m_array(list_of(1)(2)(3)) {}
this was glommed from: http://www.boost.org/doc/libs/1_35_0/libs/assign/test/array.cpp Jeff Flinn