From 52f2f96f36413e51875ac85a5c5e0768fd439082 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 22 Jun 2018 01:01:45 +0100 Subject: [PATCH] Closed beta 1.3.7.1: Fix Release build. --- Telegram/SourceFiles/base/unique_function.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/base/unique_function.h b/Telegram/SourceFiles/base/unique_function.h index 46c686726..48c4cbfc2 100644 --- a/Telegram/SourceFiles/base/unique_function.h +++ b/Telegram/SourceFiles/base/unique_function.h @@ -124,7 +124,10 @@ public: _impl.swap(other._impl); } - template + template < + typename ...OtherArgs, + typename = decltype(std::declval>()( + std::declval()...))> Return operator()(OtherArgs &&...args) { return _impl(std::forward(args)...); }