Boost C++ Libraries: Ticket #11202: boost.sort header conflicts with boost.range header https://svn.boost.org/trac10/ticket/11202 <p> This two-line program fails to compile. </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#include</span> <span class="cpf">&lt;boost/range/algorithm.hpp&gt;</span><span class="cp"></span> <span class="cp">#include</span> <span class="cpf">&lt;boost/sort/spreadsort/spreadsort.hpp&gt;</span><span class="cp"></span> </pre></div></div><p> The headers conflict on "boost::sort". The first header declares a <strong>function</strong> boost::sort. The second header declares a <strong>namespace</strong> boost::sort. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11202 Trac 1.4.3 viboes Tue, 28 Apr 2015 14:58:33 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11202#comment:1 https://svn.boost.org/trac10/ticket/11202#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Marshall Clow</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">algorithm</span> </li> </ul> Ticket Marshall Clow Wed, 29 Apr 2015 14:27:41 GMT owner, component changed https://svn.boost.org/trac10/ticket/11202#comment:2 https://svn.boost.org/trac10/ticket/11202#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Marshall Clow</span> to <span class="trac-author">Paul A. Bristow</span> </li> <li><strong>component</strong> <span class="trac-field-old">algorithm</span> → <span class="trac-field-new">sort</span> </li> </ul> <p> This is definitely not me. This belongs to Steven Ross, maintainer of the Boost.Sort library. </p> Ticket stevenross Mon, 18 May 2015 00:54:00 GMT component, owner changed; cc, keywords set https://svn.boost.org/trac10/ticket/11202#comment:3 https://svn.boost.org/trac10/ticket/11202#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">stevenross</span> added </li> <li><strong>keywords</strong> sort added </li> <li><strong>component</strong> <span class="trac-field-old">sort</span> → <span class="trac-field-new">range</span> </li> <li><strong>owner</strong> changed from <span class="trac-author">Paul A. Bristow</span> to <span class="trac-author">Neil Groves</span> </li> </ul> <p> This is due to the "using range::sort" at the bottom of boost/range/algorithm/sort.hpp (fixing this also requires renaming uses of boost::sort to boost::range::sort). It's causing namespace pollution by putting a function in the boost:: namespace, that's conflicting with the boost::sort library. It's also a violation of this guideline: <a class="ext-link" href="https://svn.boost.org/trac/boost/wiki/Guidelines/MaintenanceGuidelines#Avoidtheinclusionofsymbolsattheboostorboost::detailnamespace"><span class="icon">​</span>https://svn.boost.org/trac/boost/wiki/Guidelines/MaintenanceGuidelines#Avoidtheinclusionofsymbolsattheboostorboost::detailnamespace</a> </p> <p> Neil Groves has agreed to look into it. </p> Ticket anonymous Tue, 23 Feb 2016 14:47:50 GMT <link>https://svn.boost.org/trac10/ticket/11202#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11202#comment:4</guid> <description> <p> I know, Boost is a project of volunteers but I just stumbled over the same issue. And since there is no +1 and the last activity has been months ago I figured I just put a comment here to bring that ticket to your attention again. </p> </description> <category>Ticket</category> </item> </channel> </rss>