Boost logo

Boost :

From: Sylvain Pion (Sylvain.Pion_at_[hidden])
Date: 2006-08-10 07:23:28


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk