mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-10 00:57:57 +00:00
Fix build in Xcode and GCC.
This commit is contained in:
parent
6c00b7efde
commit
f6918feea3
@ -30,7 +30,7 @@ using variant = mapbox::util::variant<Types...>;
|
||||
|
||||
template <typename T, typename... Types>
|
||||
inline T *get_if(variant<Types...> *v) {
|
||||
return (v && v->is<T>()) ? &v->get_unchecked<T>() : nullptr;
|
||||
return (v && v->template is<T>()) ? &v->template get_unchecked<T>() : nullptr;
|
||||
}
|
||||
|
||||
} // namespace base
|
||||
|
Loading…
Reference in New Issue
Block a user