
14 Jun
2011
14 Jun
'11
4:10 p.m.
On 14/06/2011 17:23, Michael Goldshteyn wrote:
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;
// This does, but seems like a lot of work template <int len> struct MyChar { char val_[len]; };
Use boost::array (or std::array if you have it).