Answer the question
In order to leave comments, you need to log in
How to choose type at runtime?
I looked at type traits and RTTI , but as far as I understand, RTTI only determines the type, and type traits work only at compile-time.
For example, I get a value at runtime, and I need to define a variable of the required type depending on this. How?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question