Simplify named arguments

This commit is contained in:
Victor Zverovich
2020-05-09 16:43:31 -07:00
parent 02a6fe59fb
commit 963ee08310
2 changed files with 15 additions and 41 deletions
+1 -1
View File
@@ -3515,7 +3515,7 @@ template <typename Char> struct udl_formatter {
template <typename Char> struct udl_arg {
const Char* str;
template <typename T> named_arg<T, Char> operator=(T&& value) const {
template <typename T> named_arg<Char, T> operator=(T&& value) const {
return {str, std::forward<T>(value)};
}
};