uvalue and polymorphic types #28
-
Is my understanding correct that uvalue::try_cast should work in case of casting the derived value to the base?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Right now, "uvalue" doesn't support any casts and works like std::any with little specific features. But it can be added because I already do something like this in function calls (when we call functions with reference or pointer attributes on base classes). Of course, it will work only for registered classes with correct "base_<>" attributes. I'll create a task for this feature! |
Beta Was this translation helpful? Give feedback.
-
thank you. I think it will be useful. |
Beta Was this translation helpful? Give feedback.
-
Upcasting is now supported. New example: UValue |
Beta Was this translation helpful? Give feedback.
Upcasting is now supported. New example: UValue