diff options
| -rw-r--r-- | libs/vr/libpdx/private/pdx/rpc/variant.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/vr/libpdx/private/pdx/rpc/variant.h b/libs/vr/libpdx/private/pdx/rpc/variant.h index bdcb2930c4..0a4802e9d8 100644 --- a/libs/vr/libpdx/private/pdx/rpc/variant.h +++ b/libs/vr/libpdx/private/pdx/rpc/variant.h @@ -553,7 +553,7 @@ class Variant { template <typename T> constexpr std::int32_t index_of() const { static_assert(HasType<T>::value, "T is not an element type of Variant."); - return value_.template index(DecayedTypeTag<T>{}); + return value_.index(DecayedTypeTag<T>{}); } // Returns the index of the active type. If the Variant is empty -1 is @@ -575,7 +575,7 @@ class Variant { template <typename T> T* get() { if (is<T>()) - return &value_.template get(DecayedTypeTag<T>{}); + return &value_.get(DecayedTypeTag<T>{}); else return nullptr; } @@ -589,7 +589,7 @@ class Variant { template <std::size_t I> TypeForIndex<I>* get() { if (is<TypeForIndex<I>>()) - return &value_.template get(TypeTagForIndex<I>{}); + return &value_.get(TypeTagForIndex<I>{}); else return nullptr; } |