
14 Jun
2011
14 Jun
'11
3:36 p.m.
2011/6/14 Michael Goldshteyn <mgoldshteyn@comcast.net>
What is the correct way of getting several character arrays into a variant:
// This doesn't work typedef boost::variant<int,char[256],char[8192]> MyType;
[snip]
Thanks,
Michael Goldshteyn
Hi, I don't have an answer to your question, but I have two aside questions: 1) Why didn't you try variant<int,char[MAX_LEN]> in the first place? (I don't know if it should work or not) 2) Why not variant<int,vector<char> >? Regards, Kris