10 Mar
2010
10 Mar
'10
12:36 p.m.
Or use boost assign as shown inline below. Though I'm not sure of the performance differences. Roman Perepelitsa wrote:
2010/3/10 gast128
mailto:gast128@hotmail.com> That's fine, but how does one intialise a Boost.Array in member intialiser list
boost::array
MakeArray() { boost::array res = { 1, 2, 3, 4 }; return res; }
#include
struct Foo { Foo() : m_a(MakeArray()) {}
Foo() : m_a(list_of(1)(2)(3)(4)) {}
boost::array
m_a; }; Roman Perepelitsa.
Jeff