meta: oops :)

This commit is contained in:
skypjack
2025-11-04 14:54:37 +01:00
parent 3c0aa4d300
commit f781441bcd

View File

@@ -475,7 +475,7 @@ public:
*/
template<typename Type>
[[nodiscard]] meta_any allow_cast() const {
if constexpr(!std::is_reference_v<Type> || !std::is_const_v<std::remove_reference_t<Type>>) {
if constexpr(!std::is_reference_v<Type> || std::is_const_v<std::remove_reference_t<Type>>) {
if(storage.has_value<std::remove_const_t<std::remove_reference_t<Type>>>()) {
return as_ref();
} else if(*this) {