How to handle char and string in variable?

34 Views Asked by At

I have e.g. struct(structure) in C/C++ something like,

struct _Token
{
    _DataTypes Type;
    std::string Value;
};

in C++ 14

But I want I want Value would be (std::string || char): Value;, how can I done that without union or things like that?

0

There are 0 best solutions below