Skip to content

Commit

Permalink
Fix UB in format_arg_store implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivafanas committed Jan 31, 2024
1 parent 71a4a8d commit 64595a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,11 @@ struct format_arg_store {
0,
(init_named_arg(named_args, arg_index, named_arg_index, values), 0)...};
}

format_arg_store(const format_arg_store& rhs) = delete;
format_arg_store(format_arg_store&& rhs) = delete;
format_arg_store& operator=(const format_arg_store& rhs) = delete;
format_arg_store& operator=(format_arg_store&& rhs) = delete;
};

// A specialization of format_arg_store without named arguments.
Expand Down

0 comments on commit 64595a0

Please sign in to comment.