Skip to content

Commit cd1b58a

Browse files
committed
Merge from trunk
[SVN r63911]
1 parent 310a638 commit cd1b58a

File tree

8 files changed

+26
-26
lines changed

8 files changed

+26
-26
lines changed

doc/howto.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if (vm.count("response-file")) {
107107
// Load the file and tokenize it
108108
ifstream ifs(vm["response-file"].as<string>().c_str());
109109
if (!ifs) {
110-
cout << "Could no open the response file\n";
110+
cout << "Could not open the response file\n";
111111
return 1;
112112
}
113113
// Read the whole file into a string
@@ -146,7 +146,7 @@ if (vm.count("response-file")) {
146146
vector&lt;string&gt; args = split_winmain(lpCmdLine);
147147
store(command_line_parser(args).options(desc).run(), vm);
148148
</programlisting>
149-
The function is an overload for <code>wchar_t</code> strings, so can
149+
The <code>split_winmain</code> function is overloaded for <code>wchar_t</code> strings, so can
150150
also be used in Unicode applications.
151151
</para>
152152

include/boost/program_options/detail/parsers.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace boost { namespace program_options {
2929
template<class charT>
3030
basic_command_line_parser<charT>::
3131
basic_command_line_parser(const std::vector<
32-
std::basic_string<charT> >& args)
33-
: detail::cmdline(to_internal(args))
32+
std::basic_string<charT> >& xargs)
33+
: detail::cmdline(to_internal(xargs))
3434
{}
3535

3636

@@ -64,9 +64,9 @@ namespace boost { namespace program_options {
6464

6565
template<class charT>
6666
basic_command_line_parser<charT>&
67-
basic_command_line_parser<charT>::style(int style)
67+
basic_command_line_parser<charT>::style(int xstyle)
6868
{
69-
detail::cmdline::style(style);
69+
detail::cmdline::style(xstyle);
7070
return *this;
7171
}
7272

include/boost/program_options/detail/value_semantic.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ namespace boost { namespace program_options {
143143
a validator for class T, we use it even
144144
when parsing vector<T>. */
145145
boost::any a;
146-
std::vector<std::basic_string<charT> > v;
147-
v.push_back(s[i]);
148-
validate(a, v, (T*)0, 0);
146+
std::vector<std::basic_string<charT> > cv;
147+
cv.push_back(s[i]);
148+
validate(a, cv, (T*)0, 0);
149149
tv->push_back(boost::any_cast<T>(a));
150150
}
151151
catch(const bad_lexical_cast& /*e*/) {

include/boost/program_options/errors.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace boost { namespace program_options {
2020
/** Base class for all errors in the library. */
2121
class BOOST_PROGRAM_OPTIONS_DECL error : public std::logic_error {
2222
public:
23-
error(const std::string& what) : std::logic_error(what) {}
23+
error(const std::string& xwhat) : std::logic_error(xwhat) {}
2424
};
2525

2626
class BOOST_PROGRAM_OPTIONS_DECL invalid_syntax : public error {
@@ -78,9 +78,9 @@ namespace boost { namespace program_options {
7878
class BOOST_PROGRAM_OPTIONS_DECL ambiguous_option : public error {
7979
public:
8080
ambiguous_option(const std::string& name,
81-
const std::vector<std::string>& alternatives)
81+
const std::vector<std::string>& xalternatives)
8282
: error(std::string("ambiguous option ").append(name))
83-
, m_alternatives(alternatives)
83+
, m_alternatives(xalternatives)
8484
, m_option_name(name)
8585
{}
8686

include/boost/program_options/option.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ namespace boost { namespace program_options {
2828
, unregistered(false)
2929
, case_insensitive(false)
3030
{}
31-
basic_option(const std::string& string_key,
32-
const std::vector< std::string> &value)
33-
: string_key(string_key)
34-
, value(value)
31+
basic_option(const std::string& xstring_key,
32+
const std::vector< std::string> &xvalue)
33+
: string_key(xstring_key)
34+
, value(xvalue)
3535
, unregistered(false)
3636
, case_insensitive(false)
3737
{}

include/boost/program_options/options_description.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace program_options {
6565
The 'name' parameter is interpreted by the following rules:
6666
- if there's no "," character in 'name', it specifies long name
6767
- otherwise, the part before "," specifies long name and the part
68-
after -- long name.
68+
after -- short name.
6969
*/
7070
option_description(const char* name,
7171
const value_semantic* s);
@@ -81,12 +81,12 @@ namespace program_options {
8181
enum match_result { no_match, full_match, approximate_match };
8282

8383
/** Given 'option', specified in the input source,
84-
return 'true' is 'option' specifies *this.
84+
returns 'true' if 'option' specifies *this.
8585
*/
8686
match_result match(const std::string& option, bool approx,
8787
bool long_ignore_case, bool short_ignore_case) const;
8888

89-
/** Return the key that should identify the option, in
89+
/** Returns the key that should identify the option, in
9090
particular in the variables_map class.
9191
The 'option' parameter is the option spelling from the
9292
input source.
@@ -107,7 +107,7 @@ namespace program_options {
107107
/// Returns the option name, formatted suitably for usage message.
108108
std::string format_name() const;
109109

110-
/** Return the parameter name and properties, formatted suitably for
110+
/** Returns the parameter name and properties, formatted suitably for
111111
usage message. */
112112
std::string format_parameter() const;
113113

@@ -211,7 +211,7 @@ namespace program_options {
211211
friend BOOST_PROGRAM_OPTIONS_DECL std::ostream& operator<<(std::ostream& os,
212212
const options_description& desc);
213213

214-
/** Output 'desc' to the specified stream, calling 'f' to output each
214+
/** Outputs 'desc' to the specified stream, calling 'f' to output each
215215
option_description element. */
216216
void print(std::ostream& os) const;
217217

@@ -247,7 +247,7 @@ namespace program_options {
247247
/** Class thrown when duplicate option description is found. */
248248
class BOOST_PROGRAM_OPTIONS_DECL duplicate_option_error : public error {
249249
public:
250-
duplicate_option_error(const std::string& what) : error(what) {}
250+
duplicate_option_error(const std::string& xwhat) : error(xwhat) {}
251251
};
252252
}}
253253

include/boost/program_options/parsers.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ namespace boost { namespace program_options {
3131
template<class charT>
3232
class basic_parsed_options {
3333
public:
34-
explicit basic_parsed_options(const options_description* description)
35-
: description(description) {}
34+
explicit basic_parsed_options(const options_description* xdescription)
35+
: description(xdescription) {}
3636
/** Options found in the source. */
3737
std::vector< basic_option<charT> > options;
3838
/** Options description that was used for parsing.

include/boost/program_options/variables_map.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ namespace boost { namespace program_options {
5353
class BOOST_PROGRAM_OPTIONS_DECL variable_value {
5454
public:
5555
variable_value() : m_defaulted(false) {}
56-
variable_value(const boost::any& v, bool defaulted)
57-
: v(v), m_defaulted(defaulted)
56+
variable_value(const boost::any& xv, bool xdefaulted)
57+
: v(xv), m_defaulted(xdefaulted)
5858
{}
5959

6060
/** If stored value if of type T, returns that value. Otherwise,

0 commit comments

Comments
 (0)