mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
include/fmt/core.h: copy constructors removal
This commit is contained in:
parent
d24be2e95c
commit
b0c8263cb2
@ -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 <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;
|
||||
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user