Boost C++ Libraries: Ticket #7086: Compilation broken with STLPort https://svn.boost.org/trac10/ticket/7086 <p> Boost.<a class="missing wiki">ProgramOptions</a> fails to compile on Linux with GCC 4.6 and STLPort 5.2.1 with the following error: </p> <pre class="wiki">libs/program_options/src/options_description.cpp: In function ‘void boost::program_options::{anonymous}::format_paragraph(stlp_std::ostream&amp;, stlp_std::string, unsigned int, unsigned int)’: libs/program_options/src/options_description.cpp:472:70: error: no matching function for call to ‘distance(const value_type*&amp;, const value_type* const&amp;)’ libs/program_options/src/options_description.cpp:472:70: note: candidate is: ./boost/range/distance.hpp:27:5: note: template&lt;class T&gt; typename boost::range_difference::type boost::distance(const T&amp;) libs/program_options/src/options_description.cpp:492:84: error: no matching function for call to ‘distance(const value_type*&amp;, const value_type*&amp;)’ libs/program_options/src/options_description.cpp:492:84: note: candidate is: ./boost/range/distance.hpp:27:5: note: template&lt;class T&gt; typename boost::range_difference::type boost::distance(const T&amp;) </pre><p> The attached patch resolves the problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7086 Trac 1.4.3 Andrey Semashev Thu, 05 Jul 2012 12:26:58 GMT attachment set https://svn.boost.org/trac10/ticket/7086 https://svn.boost.org/trac10/ticket/7086 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">options_description.cpp.patch</span> </li> </ul> <p> The patch agains the release branch. </p> Ticket Vladimir Prus Thu, 05 Jul 2012 12:39:19 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7086#comment:1 https://svn.boost.org/trac10/ticket/7086#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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79280" title="Qualify 'distance' with 'std'. Fixes #7086. ">[79280]</a>) Qualify 'distance' with 'std'. </p> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7086" title="#7086: Bugs: Compilation broken with STLPort (closed: fixed)">#7086</a>. </p> Ticket