
14 Jun
2011
14 Jun
'11
4:27 p.m.
On 14/06/2011 18:18, Troy Straszheim wrote:
On Tue, Jun 14, 2011 at 8:23 AM, Michael Goldshteyn<mgoldshteyn@comcast.net
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;
And it is odd looking. IIRC the problem is that those two array types decay to char*.
That's not the problem; the problem is that boost::variant requires that all types be CopyConstructible.