Loading libs/vr/libpdx/private/pdx/rpc/variant.h +3 −3 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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; } Loading @@ -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; } Loading Loading
libs/vr/libpdx/private/pdx/rpc/variant.h +3 −3 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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; } Loading @@ -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; } Loading