Remove no-op destructor definitions to opt-in for compiler generated ones
This commit is contained in:
parent
d2c9276fcd
commit
fa2bb60f3c
@ -223,9 +223,6 @@ FMT_FUNC Char internal::decimal_point_impl(locale_ref) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FMT_API FMT_FUNC format_error::~format_error() FMT_NOEXCEPT {}
|
|
||||||
FMT_API FMT_FUNC system_error::~system_error() FMT_NOEXCEPT {}
|
|
||||||
|
|
||||||
FMT_FUNC void system_error::init(int err_code, string_view format_str,
|
FMT_FUNC void system_error::init(int err_code, string_view format_str,
|
||||||
format_args args) {
|
format_args args) {
|
||||||
error_code_ = err_code;
|
error_code_ = err_code;
|
||||||
|
|||||||
@ -630,7 +630,6 @@ class FMT_API format_error : public std::runtime_error {
|
|||||||
explicit format_error(const char* message) : std::runtime_error(message) {}
|
explicit format_error(const char* message) : std::runtime_error(message) {}
|
||||||
explicit format_error(const std::string& message)
|
explicit format_error(const std::string& message)
|
||||||
: std::runtime_error(message) {}
|
: std::runtime_error(message) {}
|
||||||
~format_error() FMT_NOEXCEPT;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
@ -2689,7 +2688,6 @@ class FMT_API system_error : public std::runtime_error {
|
|||||||
: std::runtime_error("") {
|
: std::runtime_error("") {
|
||||||
init(error_code, message, make_format_args(args...));
|
init(error_code, message, make_format_args(args...));
|
||||||
}
|
}
|
||||||
~system_error() FMT_NOEXCEPT;
|
|
||||||
|
|
||||||
int error_code() const { return error_code_; }
|
int error_code() const { return error_code_; }
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user