diff --git a/include/fmt/core.h b/include/fmt/core.h index 231c0e98..02a389fa 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -437,8 +437,8 @@ template struct char_t_impl::value>> { }; struct error_handler { - FMT_CONSTEXPR error_handler() {} - FMT_CONSTEXPR error_handler(const error_handler&) {} + FMT_CONSTEXPR error_handler() = default; + FMT_CONSTEXPR error_handler(const error_handler&) = default; // This function is intentionally not constexpr to give a compile-time error. FMT_NORETURN FMT_API void on_error(const char* message); @@ -580,7 +580,7 @@ template class buffer { buffer(const buffer&) = delete; void operator=(const buffer&) = delete; - virtual ~buffer() {} + virtual ~buffer() = default; T* begin() FMT_NOEXCEPT { return ptr_; } T* end() FMT_NOEXCEPT { return ptr_ + size_; } diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 22b7c82d..a231ab1d 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -232,8 +232,8 @@ 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_API FMT_FUNC format_error::~format_error() FMT_NOEXCEPT = default; +FMT_API FMT_FUNC system_error::~system_error() FMT_NOEXCEPT = default; FMT_FUNC void system_error::init(int err_code, string_view format_str, format_args args) { diff --git a/include/fmt/format.h b/include/fmt/format.h index 0c14ebda..332b8271 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3030,7 +3030,7 @@ template struct formatter::value != internal::custom_type>> { - FMT_CONSTEXPR formatter() {} + FMT_CONSTEXPR formatter() = default; // Parses format specifiers stopping either at the end of the range or at the // terminating '}'.