[Boost-bugs] [Boost C++ Libraries] #9566: program_options parsers.cpp does not compile: template-related error

Subject: [Boost-bugs] [Boost C++ Libraries] #9566: program_options parsers.cpp does not compile: template-related error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-13 10:44:55


#9566: program_options parsers.cpp does not compile: template-related error
-------------------------------------------------+-------------------------
 Reporter: rv1971 <rv1971@…> | Owner:
     Type: Bugs | vladimir_prus
Milestone: To Be Determined | Status: new
  Version: Boost 1.55.0 | Component:
 Keywords: program_options parser compile | program_options
  template | Severity: Problem
-------------------------------------------------+-------------------------
 When compiling program_options/src/parsers.cpp for sun/release/stdlib-sun-
 stlport/threading-multi Sun Studio 11 C++ 5.8, the compiler issues the
 following errors:

  "libs/program_options/src/parsers.cpp", line 162: Error: Could not find a
 match for
 boost::program_options::parse_config_file<boost::program_options::charT>(const
 char*, const boost::program_options::options_description&, bool).
  "libs/program_options/src/parsers.cpp", line 169: Error: Could not find a
 match for
 boost::program_options::parse_config_file<boost::program_options::charT>(const
 char*, const boost::program_options::options_description&, bool).

 The attached patch solves the problem by expliciting the template
 parameter for parse_config_file. I guess this is a bug in the compiler
 rather than in boost, but it seems to me that the suggested patch is still
 correct C++. Since this is the only issue that would inhibit use of
 program_options on my platform, for me it would be very useful to
 integrate the patch into the library.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9566>
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:15 UTC