From 7b8cb3135a58e10850ea0ac79155e47248bf151c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 14 Apr 2018 12:40:26 -0700 Subject: [PATCH] Make context_base::args() public --- include/fmt/core.h | 4 ++-- include/fmt/format.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 98c5316c..8fc4f8e3 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -814,8 +814,6 @@ class context_base { basic_format_args args) : parse_context_(format_str), out_(out), args_(args) {} - basic_format_args args() const { return args_; } - // Returns the argument with specified index. format_arg do_get_arg(unsigned arg_id) { format_arg arg = args_[arg_id]; @@ -847,6 +845,8 @@ class context_base { // Advances the begin iterator to ``it``. void advance_to(iterator it) { out_ = it; } + + basic_format_args args() const { return args_; } }; // Extracts a reference to the container from back_insert_iterator. diff --git a/include/fmt/format.h b/include/fmt/format.h index daed3277..4a535157 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1,7 +1,7 @@ /* Formatting library for C++ - Copyright (c) 2012 - 2016, Victor Zverovich + Copyright (c) 2012 - present, Victor Zverovich All rights reserved. Redistribution and use in source and binary forms, with or without