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;
int asInt() const;
bool asBool() const;
template<typename T> const T& as() const {
return *static_cast<const T*>(m_value.asPointer);
template<typename T> const T* as() const {
return static_cast<const T*>(m_value.asPointer);
}
private: