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)