| 3734 | |
| 3735 | template <typename Context> |
| 3736 | FMT_CONSTEXPR void handle_dynamic_spec( |
| 3737 | arg_id_kind kind, int& value, |
| 3738 | const arg_ref<typename Context::char_type>& ref, Context& ctx) { |
| 3739 | if (kind == arg_id_kind::none) return; |
| 3740 | auto arg = |
| 3741 | kind == arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); |
| 3742 | if (!arg) report_error("argument not found"); |
| 3743 | ullong result = arg.visit(dynamic_spec_getter()); |
| 3744 | if (result > to_unsigned(max_value<int>())) |
| 3745 | report_error("width/precision is out of range"); |
| 3746 | value = static_cast<int>(result); |
| 3747 | } |
| 3748 | |
| 3749 | #if FMT_USE_NONTYPE_TEMPLATE_ARGS |
| 3750 | template <typename T, typename Char, size_t N, |
nothing calls this directly
no test coverage detected