[Boost-bugs] [Boost C++ Libraries] #7086: Compilation broken with STLPort

Subject: [Boost-bugs] [Boost C++ Libraries] #7086: Compilation broken with STLPort
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-05 12:25:56


#7086: Compilation broken with STLPort
----------------------------------+-----------------------------------------
 Reporter: andysem | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
  Version: Boost Release Branch | Severity: Problem
 Keywords: |
----------------------------------+-----------------------------------------
 Boost.ProgramOptions fails to compile on Linux with GCC 4.6 and STLPort
 5.2.1 with the following error:

 {{{
 libs/program_options/src/options_description.cpp: In function ‘void
 boost::program_options::{anonymous}::format_paragraph(stlp_std::ostream&,
 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*&, const
 value_type* const&)’
 libs/program_options/src/options_description.cpp:472:70: note: candidate
 is:
 ./boost/range/distance.hpp:27:5: note: template<class T> typename
 boost::range_difference::type boost::distance(const T&)
 libs/program_options/src/options_description.cpp:492:84: error: no
 matching function for call to ‘distance(const value_type*&, const
 value_type*&)’
 libs/program_options/src/options_description.cpp:492:84: note: candidate
 is:
 ./boost/range/distance.hpp:27:5: note: template<class T> typename
 boost::range_difference::type boost::distance(const T&)
 }}}

 The attached patch resolves the problem.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7086>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC