
10 Aug
2006
10 Aug
'06
11:23 a.m.
Sam Saariste wrote:
The following is possible today and appears to achieve what the OP asked for (but may not be what the OP wanted):
class A { static boost::array<int, 3> s_a; boost::array<int, 3> a; public: A() : a(s_a) {} }; boost::array<int, 3> A::s_a = { 1, 2, 3 };
My example code was only illustrative. The interesting case is that I want to pass the constructor arguments to the array. In which case your solution does not work. -- Sylvain