From 20b67ee0007e73d8a6e0619197251413b3c233f3 Mon Sep 17 00:00:00 2001 From: John Preston <johnprestonmail@gmail.com> Date: Wed, 6 Jun 2018 13:59:53 +0300 Subject: [PATCH] Fix build for GCC. --- Telegram/SourceFiles/base/optional.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/base/optional.h b/Telegram/SourceFiles/base/optional.h index 4c8f41841..2240a8485 100644 --- a/Telegram/SourceFiles/base/optional.h +++ b/Telegram/SourceFiles/base/optional.h @@ -89,11 +89,11 @@ public: template <typename T, typename... Args> T &set(Args &&...args) { - _impl.set<T>(std::forward<Args>(args)...); + _impl.template set<T>(std::forward<Args>(args)...); return get_unchecked<T>(); } void clear() { - _impl.set<none_type>(); + _impl.template set<none_type>(); } template <typename T>