From f6918feea314412e3adad3dcea6903d32960ec0f Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 10 Mar 2017 18:53:16 +0300 Subject: [PATCH] Fix build in Xcode and GCC. --- Telegram/SourceFiles/core/variant.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/variant.h b/Telegram/SourceFiles/core/variant.h index 4eb411c6d5..4ff51e07bc 100644 --- a/Telegram/SourceFiles/core/variant.h +++ b/Telegram/SourceFiles/core/variant.h @@ -30,7 +30,7 @@ using variant = mapbox::util::variant; template inline T *get_if(variant *v) { - return (v && v->is()) ? &v->get_unchecked() : nullptr; + return (v && v->template is()) ? &v->template get_unchecked() : nullptr; } } // namespace base