Skip to content

Commit a9ea9bb

Browse files
escape first dash ('-') in double-dashes ('--') found in doxygen comments
This should prevent doxygen from generating bad documentation HTML pages containing '<ndash></ndash>' where those double-dashes should be.
1 parent 3cec23f commit a9ea9bb

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

include/boost/program_options/eof_iterator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace boost {
1212

1313
/** The 'eof_iterator' class is useful for constructing forward iterators
1414
in cases where iterator extract data from some source and it's easy
15-
to detect 'eof' -- i.e. the situation where there's no data. One
15+
to detect 'eof' \-- i.e. the situation where there's no data. One
1616
apparent example is reading lines from a file.
1717
1818
Implementing such iterators using 'iterator_facade' directly would

include/boost/program_options/option.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace boost { namespace program_options {
1515

1616
/** Option found in input source.
1717
Contains a key and a value. The key, in turn, can be a string (name of
18-
an option), or an integer (position in input source) -- in case no name
18+
an option), or an integer (position in input source) \-- in case no name
1919
is specified. The latter is only possible for command line.
2020
The template parameter specifies the type of char used for storing the
2121
option's value.

include/boost/program_options/options_description.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace program_options {
4141
are used only to validate input. Second affect interpretation of the
4242
option, for example default value for it or function that should be
4343
called when the value is finally known. Routines which perform parsing
44-
never use second kind of properties -- they are side effect free.
44+
never use second kind of properties \-- they are side effect free.
4545
@sa options_description
4646
*/
4747
class BOOST_PROGRAM_OPTIONS_DECL option_description {
@@ -71,7 +71,7 @@ namespace program_options {
7171
The 'name' parameter is interpreted by the following rules:
7272
- if there's no "," character in 'name', it specifies long name
7373
- otherwise, the part before "," specifies long name and the part
74-
after -- short name.
74+
after \-- short name.
7575
*/
7676
option_description(const char* name,
7777
const value_semantic* s);

include/boost/program_options/parsers.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ namespace boost { namespace program_options {
101101
102102
The class allows one to specify all the information needed for parsing
103103
and to parse the command line. It is primarily needed to
104-
emulate named function parameters -- a regular function with 5
104+
emulate named function parameters \-- a regular function with 5
105105
parameters will be hard to use and creating overloads with a smaller
106106
number of parameters will be confusing.
107107
108108
For the most common case, the function parse_command_line is a better
109109
alternative.
110110
111-
There are two typedefs -- command_line_parser and wcommand_line_parser,
111+
There are two typedefs \-- command_line_parser and wcommand_line_parser,
112112
for charT == char and charT == wchar_t cases.
113113
*/
114114
template<class charT>

include/boost/program_options/variables_map.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ namespace boost { namespace program_options {
164164
which does 'find' in *this. */
165165
const variable_value& get(const std::string& name) const;
166166

167-
/** Names of option with 'final' values -- which should not
167+
/** Names of option with 'final' values \-- which should not
168168
be changed by subsequence assignments. */
169169
std::set<std::string> m_final;
170170

0 commit comments

Comments
 (0)