figments: input: fix as() signature to return pointers

This commit is contained in:
Torrie Fischer 2023-02-19 18:47:04 +01:00
parent ccb58082a2
commit 39190d6506

View File

@ -37,8 +37,8 @@ struct Variant {
CRGB asRGB() const; CRGB asRGB() const;
int asInt() const; int asInt() const;
bool asBool() const; bool asBool() const;
template<typename T> const T& as() const { template<typename T> const T* as() const {
return *static_cast<const T*>(m_value.asPointer); return static_cast<const T*>(m_value.asPointer);
} }
private: private: