|
Boost Users : |
Subject: Re: [Boost-users] Boost.Array intialisation
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2010-03-10 06:51:52
2010/3/10 gast128 <gast128_at_[hidden]>
> 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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net