From f35085800a09acd35a8021d09396b8d482fe298b Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 18 Jun 2019 12:02:58 +0200 Subject: [PATCH] Fix build in GCC. --- Telegram/SourceFiles/boxes/generic_box.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/generic_box.h b/Telegram/SourceFiles/boxes/generic_box.h index 47a0e6da7..f2985c8ec 100644 --- a/Telegram/SourceFiles/boxes/generic_box.h +++ b/Telegram/SourceFiles/boxes/generic_box.h @@ -80,7 +80,11 @@ protected: private: template struct Initer { - template + template < + typename OtherMethod, + typename ...OtherArgs, + typename = std::enable_if_t< + std::is_constructible_v>> Initer(OtherMethod &&method, OtherArgs &&...args); void operator()(not_null box); @@ -106,7 +110,7 @@ private: }; template -template +template GenericBox::Initer::Initer( OtherMethod &&method, OtherArgs &&...args)