mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build in Xcode and GCC.
This commit is contained in:
parent
6c00b7efde
commit
f6918feea3
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ using variant = mapbox::util::variant<Types...>;
|
||||||
|
|
||||||
template <typename T, typename... Types>
|
template <typename T, typename... Types>
|
||||||
inline T *get_if(variant<Types...> *v) {
|
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
|
} // namespace base
|
||||||
|
|
Loading…
Add table
Reference in a new issue