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;
|
||||
|
||||
template <typename... Args>
|
||||
auto operator()(Args&&... args) const
|
||||
-> decltype(format(str, std::forward<Args>(args)...)) {
|
||||
std::basic_string<Char> operator()(Args&&... args) const {
|
||||
return format(str, std::forward<Args>(args)...);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user