
1 Mar
2009
1 Mar
'09
6:19 a.m.
Hi All, I have a structure containing a fusion sequence which is constructed recursively. BOOST_PARAMETER_KEYWORD(tag,kwd_struct) // This element depends on others, hence fetches the structure elem_x(const Args& args){ ...args[kwd_struct]...; } structure(Args const& args) :elements_( make_elements( ((kwd_struct = (*this)),args) ) ) {}; error: in constructor elem_x(const Args&) [with Args = ...] no match for operator[] in args[kwd_struct] If I reverse the order of the arguments (args,(kwd_struct = (*this))) it compiles. Why the discrepancy?