Boost C++ Libraries: Ticket #5396: multi_index_container initialization in wrong order https://svn.boost.org/trac10/ticket/5396 <p> On some compilers (armcc) this is at least a warning, and in our build environment, warnings are errors. There seems to be no easy workaround to get this to compile </p> <p> "../../boost/multi_index_container.hpp", line 193: Error: <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1299" title="#1299: Bugs: change in typedef stringstream_type in format_date_parser.hpp causing ... (closed: fixed)">#1299</a>-D: members and base-classes will be initialized in declaration order, not in member initialisation list order </p> <blockquote> <p> super(args_list,bfm_allocator::member), <sup> </sup></p> </blockquote> <p> "../../boost/multi_index_container.hpp", line 201: Error: <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1299" title="#1299: Bugs: change in typedef stringstream_type in format_date_parser.hpp causing ... (closed: fixed)">#1299</a>-D: members and base-classes will be initialized in declaration order, not in member initialisation list order </p> <blockquote> <p> super(ctor_args_list(),bfm_allocator::member), <sup> </sup></p> </blockquote> <p> "../../boost/multi_index_container.hpp", line 228: Error: <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1299" title="#1299: Bugs: change in typedef stringstream_type in format_date_parser.hpp causing ... (closed: fixed)">#1299</a>-D: members and base-classes will be initialized in declaration order, not in member initialisation list order </p> <blockquote> <p> super(args_list,bfm_allocator::member), <sup> </sup></p> </blockquote> <p> "../../boost/multi_index_container.hpp", line 249: Error: <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1299" title="#1299: Bugs: change in typedef stringstream_type in format_date_parser.hpp causing ... (closed: fixed)">#1299</a>-D: members and base-classes will be initialized in declaration order, not in member initialisation list order </p> <blockquote> <p> super(x), </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5396 Trac 1.4.3 Joaquín M López Muñoz Mon, 04 Apr 2011 06:46:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5396#comment:1 https://svn.boost.org/trac10/ticket/5396#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Hello, </p> <p> I've checked the offending lines and initialization coincides with declaration order in all cases, so I'm afraid this is a problem with your compiler. Can't you suppress warnings on a per-case basis so as to ignore this one? </p> <p> Closing the report as a non-bug. </p> Ticket