Boost C++ Libraries: Ticket #5231: Unncessary forward declaration of std::pair https://svn.boost.org/trac10/ticket/5231 <p> fusion/adapted/std_pair.hpp contains a forward declaration of std::pair. This upsets libc++. </p> <p> However, &lt;utility&gt; is also (I believe) always included anywhere (at least, in every test I did), so the forward declaration isn't very useful anyway. This patch just replaces it with a #include &lt;utility&gt;. For me, this very slightly decreases the size of the pre-processed file on both mac and linux g++. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5231 Trac 1.4.3 Chris Jefferson Fri, 25 Feb 2011 15:18:07 GMT attachment set https://svn.boost.org/trac10/ticket/5231 https://svn.boost.org/trac10/ticket/5231 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">adapted_std_pair.patch</span> </li> </ul> <p> Patch to boost/fusion/adapted/struct/adapt_struct.hpp </p> Ticket Chris Jefferson Mon, 07 Mar 2011 10:52:41 GMT <link>https://svn.boost.org/trac10/ticket/5231#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5231#comment:1</guid> <description> <p> On boost, &lt;utility&gt; is (I believe) always pulled in during config. That is certainly the case on the platforms I have access to (clang, g++, visual c++). Therefore I would like to propose just replacing this forward declaration with a #include &lt;utility&gt; </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Chris Jefferson</dc:creator> <pubDate>Tue, 29 Mar 2011 16:19:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5231#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5231#comment:2</guid> <description> <p> ping. </p> <p> I would really like to get this fixed for the next version of boost, and the patch seems fairly simple. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Wed, 30 Mar 2011 00:25:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5231#comment:3 https://svn.boost.org/trac10/ticket/5231#comment:3 <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">fixed</span> </li> </ul> <p> Fixed. Added #include &lt;utility&gt; and removed the unnecessary forward declaration. Check the trunk. I'll merge to release ASAP. </p> Ticket