mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Add context_base::arg()
This commit is contained in:
parent
01640f44cf
commit
64690d3a97
@ -1017,7 +1017,8 @@ class context_base {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
basic_parse_context<char_type> &parse_context() { return parse_context_; }
|
basic_parse_context<char_type> &parse_context() { return parse_context_; }
|
||||||
basic_format_args<Context> args() const { return args_; }
|
basic_format_args<Context> args() const { return args_; } // DEPRECATED!
|
||||||
|
basic_format_arg<Context> arg(unsigned id) const { return args_.get(id); }
|
||||||
|
|
||||||
internal::error_handler error_handler() {
|
internal::error_handler error_handler() {
|
||||||
return parse_context_.error_handler();
|
return parse_context_.error_handler();
|
||||||
|
Loading…
Reference in New Issue
Block a user