@@ -35,7 +35,7 @@ namespace boost { namespace program_options {
35
35
}
36
36
37
37
/* * Base class for all errors in the library. */
38
- class BOOST_PROGRAM_OPTIONS_DECL error : public std::logic_error {
38
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE error : public std::logic_error {
39
39
public:
40
40
error (const std::string& xwhat) : std::logic_error(xwhat) {}
41
41
};
@@ -44,23 +44,23 @@ namespace boost { namespace program_options {
44
44
/* * Class thrown when there are too many positional options.
45
45
This is a programming error.
46
46
*/
47
- class BOOST_PROGRAM_OPTIONS_DECL too_many_positional_options_error : public error {
47
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE too_many_positional_options_error : public error {
48
48
public:
49
49
too_many_positional_options_error ()
50
50
: error(" too many positional options have been specified on the command line" )
51
51
{}
52
52
};
53
53
54
54
/* * Class thrown when there are programming error related to style */
55
- class BOOST_PROGRAM_OPTIONS_DECL invalid_command_line_style : public error {
55
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE invalid_command_line_style : public error {
56
56
public:
57
57
invalid_command_line_style (const std::string& msg)
58
58
: error(msg)
59
59
{}
60
60
};
61
61
62
62
/* * Class thrown if config file can not be read */
63
- class BOOST_PROGRAM_OPTIONS_DECL reading_file : public error {
63
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE reading_file : public error {
64
64
public:
65
65
reading_file (const char * filename)
66
66
: error(std::string(" can not read options configuration file '" ).append(filename).append(" '" ))
@@ -91,7 +91,7 @@ namespace boost { namespace program_options {
91
91
* or without a prefix (from a configuration file)
92
92
*
93
93
* */
94
- class BOOST_PROGRAM_OPTIONS_DECL error_with_option_name : public error {
94
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE error_with_option_name : public error {
95
95
96
96
protected:
97
97
/* * can be
@@ -204,7 +204,7 @@ namespace boost { namespace program_options {
204
204
205
205
/* * Class thrown when there are several option values, but
206
206
user called a method which cannot return them all. */
207
- class BOOST_PROGRAM_OPTIONS_DECL multiple_values : public error_with_option_name {
207
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE multiple_values : public error_with_option_name {
208
208
public:
209
209
multiple_values ()
210
210
: error_with_option_name(" option '%canonical_option%' only takes a single argument" ){}
@@ -215,7 +215,7 @@ namespace boost { namespace program_options {
215
215
/* * Class thrown when there are several occurrences of an
216
216
option, but user called a method which cannot return
217
217
them all. */
218
- class BOOST_PROGRAM_OPTIONS_DECL multiple_occurrences : public error_with_option_name {
218
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE multiple_occurrences : public error_with_option_name {
219
219
public:
220
220
multiple_occurrences ()
221
221
: error_with_option_name(" option '%canonical_option%' cannot be specified more than once" ){}
@@ -225,7 +225,7 @@ namespace boost { namespace program_options {
225
225
};
226
226
227
227
/* * Class thrown when a required/mandatory option is missing */
228
- class BOOST_PROGRAM_OPTIONS_DECL required_option : public error_with_option_name {
228
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE required_option : public error_with_option_name {
229
229
public:
230
230
// option name is constructed by the option_descriptor and never on the fly
231
231
required_option (const std::string& option_name)
@@ -247,7 +247,7 @@ namespace boost { namespace program_options {
247
247
* a lot easier, even if the name indicates some sort of conceptual dissonance!
248
248
*
249
249
* */
250
- class BOOST_PROGRAM_OPTIONS_DECL error_with_no_option_name : public error_with_option_name {
250
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE error_with_no_option_name : public error_with_option_name {
251
251
public:
252
252
error_with_no_option_name (const std::string& template_,
253
253
const std::string& original_token = " " )
@@ -263,7 +263,7 @@ namespace boost { namespace program_options {
263
263
264
264
265
265
/* * Class thrown when option name is not recognized. */
266
- class BOOST_PROGRAM_OPTIONS_DECL unknown_option : public error_with_no_option_name {
266
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE unknown_option : public error_with_no_option_name {
267
267
public:
268
268
unknown_option (const std::string& original_token = " " )
269
269
: error_with_no_option_name(" unrecognised option '%canonical_option%'" , original_token)
@@ -276,7 +276,7 @@ namespace boost { namespace program_options {
276
276
277
277
278
278
/* * Class thrown when there's ambiguity amoung several possible options. */
279
- class BOOST_PROGRAM_OPTIONS_DECL ambiguous_option : public error_with_no_option_name {
279
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE ambiguous_option : public error_with_no_option_name {
280
280
public:
281
281
ambiguous_option (const std::vector<std::string>& xalternatives)
282
282
: error_with_no_option_name(" option '%canonical_option%' is ambiguous" ),
@@ -299,7 +299,7 @@ namespace boost { namespace program_options {
299
299
/* * Class thrown when there's syntax error either for command
300
300
* line or config file options. See derived children for
301
301
* concrete classes. */
302
- class BOOST_PROGRAM_OPTIONS_DECL invalid_syntax : public error_with_option_name {
302
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE invalid_syntax : public error_with_option_name {
303
303
public:
304
304
enum kind_t {
305
305
long_not_allowed = 30 ,
@@ -332,7 +332,7 @@ namespace boost { namespace program_options {
332
332
kind_t m_kind;
333
333
};
334
334
335
- class BOOST_PROGRAM_OPTIONS_DECL invalid_config_file_syntax : public invalid_syntax {
335
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE invalid_config_file_syntax : public invalid_syntax {
336
336
public:
337
337
invalid_config_file_syntax (const std::string& invalid_line, kind_t kind):
338
338
invalid_syntax (kind)
@@ -348,7 +348,7 @@ namespace boost { namespace program_options {
348
348
349
349
350
350
/* * Class thrown when there are syntax errors in given command line */
351
- class BOOST_PROGRAM_OPTIONS_DECL invalid_command_line_syntax : public invalid_syntax {
351
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE invalid_command_line_syntax : public invalid_syntax {
352
352
public:
353
353
invalid_command_line_syntax (kind_t kind,
354
354
const std::string& option_name = " " ,
@@ -360,7 +360,7 @@ namespace boost { namespace program_options {
360
360
361
361
362
362
/* * Class thrown when value of option is incorrect. */
363
- class BOOST_PROGRAM_OPTIONS_DECL validation_error : public error_with_option_name {
363
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE validation_error : public error_with_option_name {
364
364
public:
365
365
enum kind_t {
366
366
multiple_values_not_allowed = 30 ,
@@ -391,7 +391,7 @@ namespace boost { namespace program_options {
391
391
};
392
392
393
393
/* * Class thrown if there is an invalid option value given */
394
- class BOOST_PROGRAM_OPTIONS_DECL invalid_option_value
394
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE invalid_option_value
395
395
: public validation_error
396
396
{
397
397
public:
@@ -402,7 +402,7 @@ namespace boost { namespace program_options {
402
402
};
403
403
404
404
/* * Class thrown if there is an invalid bool value given */
405
- class BOOST_PROGRAM_OPTIONS_DECL invalid_bool_value
405
+ class BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_VISIBLE invalid_bool_value
406
406
: public validation_error
407
407
{
408
408
public:
0 commit comments