1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[FormatVariadic] Put back return type in an attempt to make GCC happy

This commit is contained in:
Benjamin Kramer 2020-04-11 15:11:44 +02:00
parent 9f3f98bdcb
commit dda49c99ab

View File

@ -246,7 +246,9 @@ public:
// assertion. Otherwise, it will try to do something reasonable, but in general
// the details of what that is are undefined.
//
template <typename... Ts> inline auto formatv(const char *Fmt, Ts &&... Vals) {
template <typename... Ts>
inline auto formatv(const char *Fmt, Ts &&... Vals) -> formatv_object<decltype(
std::make_tuple(detail::build_format_adapter(std::forward<Ts>(Vals))...))> {
using ParamTuple = decltype(
std::make_tuple(detail::build_format_adapter(std::forward<Ts>(Vals))...));
return formatv_object<ParamTuple>(