Boost C++ Libraries: Ticket #1722: [TR1/Fusion] Conflict between TR1 and Fusion headers https://svn.boost.org/trac10/ticket/1722 <p> Originally posted @ <a class="ext-link" href="http://article.gmane.org/gmane.comp.lib.boost.devel/171545"><span class="icon">​</span>http://article.gmane.org/gmane.comp.lib.boost.devel/171545</a> - opening it here so that it doesn't get forgotten. (I'm not sure if this should be assigned to TR1 or Fusion - assigning it to Fusion for now). </p> <pre class="wiki">Hi, I've got a project that uses Boost.TR1 (by adding boost/tr1/tr1 to my include path) and Fusion, and i've run into some errors when including the Fusion headers. For example: boost/fusion/tuple/make_tuple.hpp(21) : error C2027: use of undefined type 'boost::fusion::tuple&lt;&gt;' boost/fusion/iterator/prior.hpp(50) : error C2039: 'tag_of' : is not a member of 'boost::fusion::detail' This seems to be caused by the inclusion of &lt;utility&gt; in &lt;boost/fusion/support/tag_of.hpp&gt;, which when using Boost.TR1 like this causes the Fusion headers to be included again. At the point when &lt;utility&gt; is included, the tag_of include guard has been defined but tag_of itself hasn't been declared, so nested inclusions of tag_of.hpp do nothing and the build fails. My code builds ok if i either: -Include &lt;utility&gt; myself before Fusion -Remove the include &lt;utility&gt; from tag_of.hpp (it doesnt actually seem to be required - at least, the regression tests all pass with it removed) This seems a bit fragile though. Is there a better way it can be fixed? </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1722 Trac 1.4.3 John Maddock Thu, 24 Apr 2008 10:51:46 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1722#comment:1 https://svn.boost.org/trac10/ticket/1722#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">fixed</span> </li> </ul> Ticket