Remove no-op destructor definitions to opt-in for compiler generated ones

This commit is contained in:
Deniz Evrenci 2019-09-30 18:51:30 +09:00
parent d2c9276fcd
commit fa2bb60f3c
2 changed files with 0 additions and 5 deletions

View File

@ -223,9 +223,6 @@ FMT_FUNC Char internal::decimal_point_impl(locale_ref) {
}
#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,
format_args args) {
error_code_ = err_code;

View File

@ -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 std::string& message)
: std::runtime_error(message) {}
~format_error() FMT_NOEXCEPT;
};
namespace internal {
@ -2689,7 +2688,6 @@ class FMT_API system_error : public std::runtime_error {
: std::runtime_error("") {
init(error_code, message, make_format_args(args...));
}
~system_error() FMT_NOEXCEPT;
int error_code() const { return error_code_; }
};