Skip to content

Commit

Permalink
include/fmt/core.h: copy constructors removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksymilian Czudziak authored and vitaut committed Dec 1, 2022
1 parent d24be2e commit b0c8263
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -2218,9 +2217,6 @@ template <typename Char> class specs_setter {
explicit FMT_CONSTEXPR specs_setter(basic_format_specs<Char>& 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<Char> fill) {
specs_.fill = fill;
Expand Down Expand Up @@ -2255,11 +2251,6 @@ class dynamic_specs_handler
ParseContext& ctx)
: specs_setter<char_type>(specs), specs_(specs), context_(ctx) {}

FMT_CONSTEXPR dynamic_specs_handler(const dynamic_specs_handler& other)
: specs_setter<char_type>(other),
specs_(other.specs_),
context_(other.context_) {}

template <typename Id> FMT_CONSTEXPR void on_dynamic_width(Id arg_id) {
specs_.width_ref = make_arg_ref(arg_id);
}
Expand Down

0 comments on commit b0c8263

Please sign in to comment.