Boost C++ Libraries: Ticket #231: Graph Header Clashes With Format Header https://svn.boost.org/trac10/ticket/231 <pre class="wiki">The following code produces many errors in MSVC71 #include &lt;boost/format.hpp&gt; #include &lt;boost/graph/adjacency_list.hpp&gt; int _tmain(int argc, _TCHAR* argv[]) { std::string s = (boost::format("%1% %2% % 3%") % "a" % "b" % "c").str(); return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/231 Trac 1.4.3 samuel_k Thu, 05 Feb 2004 23:27:47 GMT <link>https://svn.boost.org/trac10/ticket/231#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/231#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=545049 Is this about the 1.31.0 released libraries, or CVS head ? CVS head's boost::format fails compilation on msvc7.1 on its own at the moment. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>nobody</dc:creator> <pubDate>Fri, 06 Feb 2004 00:26:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/231#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/231#comment:2</guid> <description> <pre class="wiki">Logged In: NO This refers to the 1_31_0 release. If you remove the graph header above all is ok... </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>jsiek</dc:creator> <pubDate>Fri, 06 Feb 2004 03:20:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/231#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/231#comment:3</guid> <description> <pre class="wiki">Logged In: YES user_id=32836 I don't have access to msvc7.1, but if somone can provide a patch/fix I'll be happy to apply it. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>monecke</dc:creator> <pubDate>Tue, 16 Mar 2004 06:48:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/231#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/231#comment:4</guid> <description> <pre class="wiki">Logged In: YES user_id=199710 I have the same problem with 1.31.0 ans also msvc7.1 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Douglas Gregor</dc:creator> <pubDate>Tue, 08 Feb 2005 19:08:09 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/231#comment:5 https://svn.boost.org/trac10/ticket/231#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket nobody Wed, 23 Feb 2005 12:21:56 GMT <link>https://svn.boost.org/trac10/ticket/231#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/231#comment:6</guid> <description> <pre class="wiki">Logged In: NO I saw that &lt;boost/graph/adjacency_list.hpp&gt; defines a put function in namespace boost. format.hpp defines, and uses, a template function with same name in boost::io::detail Could that be the couse of problem ? MSVC7.1 has trouble with namespaces ? btw error logs could help. </pre> </description> <category>Ticket</category> </item> <item> <author>johnw@…</author> <pubDate>Sun, 20 May 2012 19:35:41 GMT</pubDate> <title>status changed; severity set; resolution deleted https://svn.boost.org/trac10/ticket/231#comment:7 https://svn.boost.org/trac10/ticket/231#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">Fixed</span> </li> <li><strong>severity</strong> → <span class="trac-field-new">Problem</span> </li> </ul> <p> This collision of Boost.Graph's put() and Boost.Format's put() is still occurring in 1.49.0. </p> Ticket anonymous Sun, 20 May 2012 19:36:13 GMT <link>https://svn.boost.org/trac10/ticket/231#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/231#comment:8</guid> <description> <p> One thing to note is that I only the collision when using g++-4.7, not with Clang 3.0 or 3.1. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Mon, 21 May 2012 02:50:23 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/231#comment:9 https://svn.boost.org/trac10/ticket/231#comment:9 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/231?action=diff&amp;version=9">diff</a>) </li> </ul> <p> I tested that code (with <code>_tmain</code> changed to <code>main</code> and <code>_TCHAR</code> to <code>char</code>) and it worked just fine for me on GCC 4.7.0 on Linux. Do you have a different test program that shows the problem? </p> Ticket