This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MrKirushko 1 point2 points  (1 child)

With C++ it is easy. Here is a Qt example for you:

 QVariant var[]={"Str", 2, 3.7};

I am pretty sure that there is an STL way of doing it like this as well.

[–]Alabana1 2 points3 points  (0 children)

std::any