Re: [Boost-bugs] [Boost C++ Libraries] #5654: Example parse_config_file missing template parameter

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5654: Example parse_config_file missing template parameter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-12 20:33:54


#5654: Example parse_config_file missing template parameter
-----------------------------------+----------------------------------------
  Reporter: olafvdspek@… | Owner: vladimir_prus
      Type: Bugs | Status: new
 Milestone: Boost 1.48.0 | Component: program_options
   Version: Boost 1.46.1 | Severity: Cosmetic
Resolution: | Keywords:
-----------------------------------+----------------------------------------

Comment (by Victor Tseng <palatis@…>):

 shouldn't this function be declared as
 {{{
     template<class charT>
 #if ! BOOST_WORKAROUND(__ICL, BOOST_TESTED_AT(700))
     BOOST_PROGRAM_OPTIONS_DECL
 #endif
     basic_parsed_options<charT>
     parse_config_file(const charT* filename, const options_description&,
                       bool allow_unregistered = false);
 }}}
 and just ignore those people who tries to pass an int* or double* or
 whatever* to it?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5654#comment:12>
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