
16 Sep
2010
16 Sep
'10
1:09 p.m.
Hi, I have a class which has boost::proto::terminal members like this: struct _table { struct id { id(); // default constructible /*...*/ }; boost::proto::terminal<id> id_terminal; }; _table table; Will table.id_terminal be constructed correctly? I am asking because in Proto's documentation terminals are always instantiated with curly braces, e.g.: typedef proto::terminal<int>::type int_; int_ i = {42}, j = {24}; template<int I> struct placeholder {}; proto::terminal<placeholder<0> >::type const _1 = {{}}; proto::terminal<placeholder<1> >::type const _2 = {{}}; Thanks and regards, Roland