Boost C++ Libraries: Ticket #11181: Header conflict "using-declaration causes a multiple declaration of 'boost::iterators::use_default'" https://svn.boost.org/trac10/ticket/11181 <p> I got "using-declaration causes a multiple declaration of 'boost::iterators::use_default'" error in my msvc. To reproduce bug you must create test.cpp with following text: </p> <pre class="wiki">//test.cpp #include &lt;boost/type_erasure/iterator.hpp&gt; #include &lt;boost/assign.hpp&gt; </pre><p> PS BUG appears only in boost 1.57.0, in older versions (for example 1.55.0) code compiles without errors. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11181 Trac 1.4.3 Steven Watanabe Fri, 10 Apr 2015 15:07:13 GMT <link>https://svn.boost.org/trac10/ticket/11181#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:1</guid> <description> <p> It looks like it was caused by this: <a class="ext-link" href="http://github.com/boostorg/iterator/commit/dc96d371faf87a88c04057861136c9dfa68103d7"><span class="icon">​</span>http://github.com/boostorg/iterator/commit/dc96d371faf87a88c04057861136c9dfa68103d7</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 10 Apr 2015 15:16:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11181#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11181#comment:1" title="Comment 1">steven_watanabe</a>: </p> <blockquote class="citation"> <p> It looks like it was caused by this: </p> </blockquote> <p> May be, anyway i'll be waiting fix of this issue </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 10 Apr 2015 15:52:42 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11181#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:3</guid> <description> <p> A quick workaround is to delete the declarations of boost::use_default in boost/type_erasure/iterator.hpp and add a #include &lt;boost/iterator/iterator_adaptor.hpp&gt;. I'll need to think a bit more about what the right fix should be. It's too late for 1.58 anyway. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 11 Apr 2015 11:37:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11181#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11181#comment:3" title="Comment 3">steven_watanabe</a>: </p> <blockquote class="citation"> <p> It's too late for 1.58 anyway. </p> </blockquote> <p> I hope it will be fixed at least in 1.59 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>fsmoke</dc:creator> <pubDate>Sat, 11 Apr 2015 11:39:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11181#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11181#comment:3" title="Comment 3">steven_watanabe</a>: </p> <blockquote class="citation"> <p> It's too late for 1.58 anyway. </p> </blockquote> <p> I hope it will be fixed at least in 1.59 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Domagoj Šarić</dc:creator> <pubDate>Mon, 20 Apr 2015 08:37:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11181#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:5</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11181#comment:3" title="Comment 3">steven_watanabe</a>: </p> <blockquote class="citation"> <p> It's too late for 1.58 anyway. </p> </blockquote> <p> Steven, this means that <a class="missing wiki">TypeErasure</a> has been (and still is) broken on MSVC (and thus completely unusable for cross platform projects) for three consecutive Boost versions... Don't mean to sound harsh but that's quite off-putting (if not plain lame)...Are there some tests missing that should be added to catch these problems early? </p> </description> <category>Ticket</category> </item> <item> <author>nat@…</author> <pubDate>Mon, 23 Nov 2015 11:42:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11181#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:6</guid> <description> <p> In Boost 1.59.0, (what I assume to be) another manifestation of the same bug is driven by this source: </p> <pre class="wiki">#include &lt;boost/iterator/iterator_adaptor.hpp&gt; #include &lt;boost/type_erasure/any.hpp&gt; </pre><p> It's broken in either order, though the errors differ: </p> <pre class="wiki">#include &lt;boost/type_erasure/any.hpp&gt; #include &lt;boost/iterator/iterator_adaptor.hpp&gt; </pre><p> My platform is Apple LLVM version 7.0.0 (clang-700.1.76) from Xcode 7.1.1. </p> </description> <category>Ticket</category> </item> <item> <author>nat@…</author> <pubDate>Mon, 23 Nov 2015 12:03:25 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/11181 https://svn.boost.org/trac10/ticket/11181 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">11181.patch</span> </li> </ul> <p> patch implementing Steven's suggested workaround </p> Ticket nat@… Mon, 23 Nov 2015 12:04:49 GMT <link>https://svn.boost.org/trac10/ticket/11181#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:7</guid> <description> <p> Applying the attached 11181.patch allowed me to work around this problem. </p> </description> <category>Ticket</category> </item> <item> <author>fsmoke@…</author> <pubDate>Tue, 01 Dec 2015 11:08:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11181#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:8</guid> <description> <p> when it be in release? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Michel Morin</dc:creator> <pubDate>Tue, 01 Dec 2015 14:50:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11181#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11181#comment:9</guid> <description> <p> Hey, did you try Boost 1.60 beta RC? I couldn't get errors using that version on clang trunk. You can get the beta RC <a class="ext-link" href="http://boost.cowic.de/rc/"><span class="icon">​</span>here</a>; see this <a class="ext-link" href="http://thread.gmane.org/gmane.comp.lib.boost.user/84978"><span class="icon">​</span>ML post</a>. (Note that Boost 1.60 beta has not yet been released.) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Sat, 13 Feb 2016 21:04:17 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11181#comment:10 https://svn.boost.org/trac10/ticket/11181#comment:10 <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 Smithe353 Thu, 03 Nov 2016 21:56:28 GMT status, severity, type, component, version, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/11181#comment:11 https://svn.boost.org/trac10/ticket/11181#comment:11 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Not Applicable</span> </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Library Submissions</span> </li> <li><strong>component</strong> <span class="trac-field-old">type_erasure</span> → <span class="trac-field-new">xpressive</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.57.0</span> → <span class="trac-field-new">Boost.Build-M3</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Website 1.X</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> You are a really persuasive writer. I can see this in your writeup. You've a way of writing compelling info that sparks significantly interest. bgeebbbeckabdgba </p> Ticket