Sorry to everyone if i've been absent for so long.
if I remember correctly from previous posts it's a about a workaround for not being able to use std::any. |
@Thomas1965, You're right! that is always me ahah
What's the actual problem you're trying to solve, OP? Are you trying to store multiple types of data into the same variable? |
@helios, It's really compicated to explain, because how correctly reminded by thomas1965 i'm working on a bigger project that allow me only to use c++11. In short, I need to store different types of objects that necessary comes from a template class, mainly identified by char, float and int.
In the class summed up in this topic, i need to assign to specific types variables the template content that comes from the object of the template class.
This short explanation include the answer to
Why do you need the template variable? You already know the type.
Maybe your class doesn't need to be a template at all. |
made from @dutch.
Defenetly, @dutch, you're right this class write in this topic doesn't need to be a template class, but in trying to resume it i thought it was more clear using this example. Maybe it wasn't so i'm sorry for not being much clear, but i cannot copy there all my code for lot of reason that you could imagine.
I know i'm not allowing you to help me so much in this way, but i have not better choices.
Updating this topic i need to say too that i don't have find a solution yet.