Boost C++ Libraries: Ticket #2290: Patch for GCC-4.0.1 compatibility (and better compile time). https://svn.boost.org/trac10/ticket/2290 <p> This patch makes the tests build on GCC-4.0.1 and leaves out what I believe to be the unnecessary step of checking whether a metafunction class is actually a placeholder expression. If I'm understanding correcetly, it will always be a metafunction class, and not just in the tested examples. </p> <p> Note that this patch is against 1.35.x; I know things have been shuffled for 1.36 but I assume the same transformation can be applied elsewhere. </p> <div class="wiki-code"> <div class="diff"> <ul class="entries"> <li class="entry"> <h2> <a>boost/archive/array/iarchive.hpp</a> </h2> <table class="trac-diff inline" cellspacing="0"> <colgroup> <col class="lineno"/><col class="lineno"/><col class="content"/> </colgroup> <thead> <tr> <th title="File boost/archive/array/iarchive.hpp (revision 3118)"> </th> <th title="File boost/archive/array/iarchive.hpp (working copy)"> </th> <td> <em></em> &nbsp; </td> </tr> </thead> <tbody class="unmod"> <tr> <th>108</th><th>108</th><td class="l"><span>&nbsp; template&lt;class ValueType&gt;</span></td> </tr> <tr> <th>109</th><th>109</th><td class="l"><span>&nbsp; void load_override(serialization::array&lt;ValueType&gt; const&amp; x, unsigned int version)</span></td> </tr> <tr> <th>110</th><th>110</th><td class="l"><span>&nbsp; {</span></td> </tr> </tbody> <tbody class="mod"> <tr class="first"> <th>111</th><th>&nbsp;</th><td class="l"><span>&nbsp; &nbsp; typedef typename mpl::apply<del></del>1&lt;</span></td> </tr> <tr class="last"> <th>&nbsp;</th><th>111</th><td class="r"><span>&nbsp; &nbsp; typedef typename mpl::apply<ins>_wrap</ins>1&lt;</span></td> </tr> </tbody> <tbody class="unmod"> <tr> <th>112</th><th>112</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; BOOST_DEDUCED_TYPENAME Archive::use_array_optimization</span></td> </tr> <tr> <th>113</th><th>113</th><td class="l"><span>&nbsp; &nbsp; &nbsp; , ValueType</span></td> </tr> <tr> <th>114</th><th>114</th><td class="l"><span>&nbsp; &nbsp; &gt;::type use_optimized;</span></td> </tr> </tbody> </table> </li> <li class="entry"> <h2> <a>boost/archive/array/oarchive.hpp</a> </h2> <table class="trac-diff inline" cellspacing="0"> <colgroup> <col class="lineno"/><col class="lineno"/><col class="content"/> </colgroup> <thead> <tr> <th title="File boost/archive/array/oarchive.hpp (revision 3118)"> </th> <th title="File boost/archive/array/oarchive.hpp (working copy)"> </th> <td> <em></em> &nbsp; </td> </tr> </thead> <tbody class="unmod"> <tr> <th>107</th><th>107</th><td class="l"><span>&nbsp; template&lt;class ValueType&gt;</span></td> </tr> <tr> <th>108</th><th>108</th><td class="l"><span>&nbsp; void save_override(serialization::array&lt;ValueType&gt; const&amp; x, unsigned int version)</span></td> </tr> <tr> <th>109</th><th>109</th><td class="l"><span>&nbsp; {</span></td> </tr> </tbody> <tbody class="mod"> <tr class="first"> <th>110</th><th>&nbsp;</th><td class="l"><span>&nbsp; &nbsp; typedef typename mpl::apply<del></del>1&lt;</span></td> </tr> <tr class="last"> <th>&nbsp;</th><th>110</th><td class="r"><span>&nbsp; &nbsp; typedef typename mpl::apply<ins>_wrap</ins>1&lt;</span></td> </tr> </tbody> <tbody class="unmod"> <tr> <th>111</th><th>111</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; BOOST_DEDUCED_TYPENAME Archive::use_array_optimization</span></td> </tr> <tr> <th>112</th><th>112</th><td class="l"><span>&nbsp; &nbsp; &nbsp; , BOOST_DEDUCED_TYPENAME remove_const&lt;ValueType&gt;::type</span></td> </tr> <tr> <th>113</th><th>113</th><td class="l"><span>&nbsp; &nbsp; &gt;::type use_optimized;</span></td> </tr> </tbody> </table> </li> </ul> </div></div> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2290 Trac 1.4.3 Robert Ramey Fri, 05 Sep 2008 22:32:28 GMT owner changed https://svn.boost.org/trac10/ticket/2290#comment:1 https://svn.boost.org/trac10/ticket/2290#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Robert Ramey</span> to <span class="trac-author">Matthias Troyer</span> </li> </ul> <p> matthias - could you look at this please? </p> Ticket Matthias Troyer Fri, 05 Sep 2008 22:42:42 GMT status changed https://svn.boost.org/trac10/ticket/2290#comment:2 https://svn.boost.org/trac10/ticket/2290#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Matthias Troyer Mon, 03 Aug 2009 21:00:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2290#comment:3 https://svn.boost.org/trac10/ticket/2290#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> I'm closing this since the offending code has been rewritten in the meantime but will keep the fix in mind if it should reappear. </p> Ticket