From b0c8263cb26ea178d3a5df1b984e1a61ef578950 Mon Sep 17 00:00:00 2001 From: Maksymilian Czudziak Date: Mon, 28 Nov 2022 07:23:24 +0100 Subject: [PATCH] include/fmt/core.h: copy constructors removal --- include/fmt/core.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 5b8bf765..a60b8a9b 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -641,7 +641,6 @@ FMT_NORETURN FMT_API void throw_format_error(const char* message); struct error_handler { constexpr error_handler() = default; - constexpr error_handler(const error_handler&) = default; // This function is intentionally not constexpr to give a compile-time error. FMT_NORETURN void on_error(const char* message) { @@ -2218,9 +2217,6 @@ template class specs_setter { explicit FMT_CONSTEXPR specs_setter(basic_format_specs& specs) : specs_(specs) {} - FMT_CONSTEXPR specs_setter(const specs_setter& other) - : specs_(other.specs_) {} - FMT_CONSTEXPR void on_align(align_t align) { specs_.align = align; } FMT_CONSTEXPR void on_fill(basic_string_view fill) { specs_.fill = fill; @@ -2255,11 +2251,6 @@ class dynamic_specs_handler ParseContext& ctx) : specs_setter(specs), specs_(specs), context_(ctx) {} - FMT_CONSTEXPR dynamic_specs_handler(const dynamic_specs_handler& other) - : specs_setter(other), - specs_(other.specs_), - context_(other.context_) {} - template FMT_CONSTEXPR void on_dynamic_width(Id arg_id) { specs_.width_ref = make_arg_ref(arg_id); }