mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-07 17:41:11 +00:00
Simplify udl_formatter return type
This commit is contained in:
parent
431d0f85cf
commit
6f2dd30e38
@ -3469,8 +3469,7 @@ template <typename Char> struct udl_formatter {
|
|||||||
basic_string_view<Char> str;
|
basic_string_view<Char> str;
|
||||||
|
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
auto operator()(Args&&... args) const
|
std::basic_string<Char> operator()(Args&&... args) const {
|
||||||
-> decltype(format(str, std::forward<Args>(args)...)) {
|
|
||||||
return format(str, std::forward<Args>(args)...);
|
return format(str, std::forward<Args>(args)...);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user