Subject: Re: [boost] Holding char arrays in boost variants, what is the correct way?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-06-14 12:27:18
On 14/06/2011 18:18, Troy Straszheim wrote:
> On Tue, Jun 14, 2011 at 8:23 AM, Michael Goldshteyn<mgoldshteyn_at_[hidden]
>> What is the correct way of getting several character arrays into a variant:
>> // This doesn't work
>> typedef boost::variant<int,char,char> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk