mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Inline visit
This commit is contained in:
parent
f11e968708
commit
8f7a824e47
@ -1155,9 +1155,8 @@ template <typename Context> class basic_format_arg {
|
|||||||
\endrst
|
\endrst
|
||||||
*/
|
*/
|
||||||
template <typename Visitor, typename Context>
|
template <typename Visitor, typename Context>
|
||||||
FMT_CONSTEXPR auto visit_format_arg(Visitor&& vis,
|
FMT_CONSTEXPR_DECL FMT_INLINE auto visit_format_arg(
|
||||||
const basic_format_arg<Context>& arg)
|
Visitor&& vis, const basic_format_arg<Context>& arg) -> decltype(vis(0)) {
|
||||||
-> decltype(vis(0)) {
|
|
||||||
using char_type = typename Context::char_type;
|
using char_type = typename Context::char_type;
|
||||||
switch (arg.type_) {
|
switch (arg.type_) {
|
||||||
case detail::type::none_type:
|
case detail::type::none_type:
|
||||||
|
Loading…
Reference in New Issue
Block a user