Simplify udl_formatter return type

This commit is contained in:
Charles Milette 2019-07-27 17:56:55 -04:00 committed by Victor Zverovich
parent 431d0f85cf
commit 6f2dd30e38

View File

@ -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)...);
} }
}; };