
10 Mar
2010
10 Mar
'10
4:51 a.m.
2010/3/10 gast128 <gast128@hotmail.com>
That's fine, but how does one intialise a Boost.Array in member intialiser list
boost::array<int, 4> MakeArray() { boost::array<int, 4> res = { 1, 2, 3, 4 }; return res; } struct Foo { Foo() : m_a(MakeArray()) {} boost::array<int, 4> m_a; }; Roman Perepelitsa.