$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.