Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3909: parse_command_line has bad declaration
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-08 11:28:10
#3909: parse_command_line has bad declaration
--------------------------+-------------------------------------------------
Reporter: anonymous | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: program_options
Version: Boost 1.42.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
Comment(by anonymous):
Also there is a problem with constness in charT.
This causes problem:
{{{
#!cpp
int main(int argc, char const* const argv[])
{
parse_command_line(argc, argv);
}
}}}
1. parse_command_line cannot receive char const* const[[BR]]
2. charT = char const , there is no specialization for
basic_parsed_options<char const>
So there is a need to remove_cv<charT> and only then specialize
basic_parsed_options.
[[BR]]
{{{
#!cpp
template<class charT>
basic_parsed_options<typename remove_cv<charT>::type>
parse_command_line(int argc, charT* const argv[],
....)
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3909#comment:1> 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:02 UTC