@@ -121,7 +121,7 @@ namespace boost { namespace program_options {
121
121
/* * gcc says that throw specification on dtor is loosened
122
122
* without this line
123
123
* */
124
- ~error_with_option_name () throw () {}
124
+ BOOST_DEFAULTED_FUNCTION ( ~error_with_option_name () throw (), {})
125
125
126
126
127
127
// void dump() const
@@ -209,7 +209,7 @@ namespace boost { namespace program_options {
209
209
multiple_values ()
210
210
: error_with_option_name(" option '%canonical_option%' only takes a single argument" ){}
211
211
212
- ~multiple_values () throw () {}
212
+ BOOST_DEFAULTED_FUNCTION ( ~multiple_values () throw (), {})
213
213
};
214
214
215
215
/* * Class thrown when there are several occurrences of an
@@ -220,7 +220,7 @@ namespace boost { namespace program_options {
220
220
multiple_occurrences ()
221
221
: error_with_option_name(" option '%canonical_option%' cannot be specified more than once" ){}
222
222
223
- ~multiple_occurrences () throw () {}
223
+ BOOST_DEFAULTED_FUNCTION ( ~multiple_occurrences () throw (), {})
224
224
225
225
};
226
226
@@ -233,7 +233,7 @@ namespace boost { namespace program_options {
233
233
{
234
234
}
235
235
236
- ~required_option () throw () {}
236
+ BOOST_DEFAULTED_FUNCTION ( ~required_option () throw (), {})
237
237
};
238
238
239
239
/* * Base class of unparsable options,
@@ -258,7 +258,7 @@ namespace boost { namespace program_options {
258
258
/* * Does NOT set option name, because no option name makes sense */
259
259
virtual void set_option_name (const std::string&) {}
260
260
261
- ~error_with_no_option_name () throw () {}
261
+ BOOST_DEFAULTED_FUNCTION ( ~error_with_no_option_name () throw (), {})
262
262
};
263
263
264
264
@@ -270,7 +270,7 @@ namespace boost { namespace program_options {
270
270
{
271
271
}
272
272
273
- ~unknown_option () throw () {}
273
+ BOOST_DEFAULTED_FUNCTION ( ~unknown_option () throw (), {})
274
274
};
275
275
276
276
@@ -283,7 +283,7 @@ namespace boost { namespace program_options {
283
283
m_alternatives (xalternatives)
284
284
{}
285
285
286
- ~ambiguous_option () throw () {}
286
+ BOOST_DEFAULTED_FUNCTION ( ~ambiguous_option () throw (), {})
287
287
288
288
const std::vector<std::string>& alternatives () const throw() {return m_alternatives;}
289
289
@@ -320,7 +320,7 @@ namespace boost { namespace program_options {
320
320
{
321
321
}
322
322
323
- ~invalid_syntax () throw () {}
323
+ BOOST_DEFAULTED_FUNCTION ( ~invalid_syntax () throw (), {})
324
324
325
325
kind_t kind () const {return m_kind;}
326
326
@@ -340,7 +340,7 @@ namespace boost { namespace program_options {
340
340
m_substitutions[" invalid_line" ] = invalid_line;
341
341
}
342
342
343
- ~invalid_config_file_syntax () throw () {}
343
+ BOOST_DEFAULTED_FUNCTION ( ~invalid_config_file_syntax () throw (), {})
344
344
345
345
/* * Convenience functions for backwards compatibility */
346
346
virtual std::string tokens () const {return m_substitutions.find (" invalid_line" )->second ; }
@@ -355,7 +355,7 @@ namespace boost { namespace program_options {
355
355
const std::string& original_token = " " ,
356
356
int option_style = 0 ):
357
357
invalid_syntax (kind, option_name, original_token, option_style) {}
358
- ~invalid_command_line_syntax () throw () {}
358
+ BOOST_DEFAULTED_FUNCTION ( ~invalid_command_line_syntax () throw (), {})
359
359
};
360
360
361
361
@@ -380,7 +380,7 @@ namespace boost { namespace program_options {
380
380
{
381
381
}
382
382
383
- ~validation_error () throw () {}
383
+ BOOST_DEFAULTED_FUNCTION ( ~validation_error () throw (), {})
384
384
385
385
kind_t kind () const { return m_kind; }
386
386
0 commit comments