Make compile-time checks in format_to handle references

This commit is contained in:
Victor Zverovich committed 2020-03-01 07:57:34 -08:00
1 parent 58e6c84f5a
commit 1e8493196e
3 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -1460,7 +1460,7 @@ make_args_checked(const S& format_str,
all_true<(!std::is_base_of<view, remove_reference_t<Args>>::value ||
!std::is_reference<Args>::value)...>::value,
"passing views as lvalues is disallowed");
check_format_string<remove_const_t<remove_reference_t<Args>>...>(format_str);
check_format_string<Args...>(format_str);
return {args...};
}