Boost logo

Boost :

Subject: Re: [boost] Holding char arrays in boost variants, what is the correct way?
From: Michael Goldshteyn (mgoldshteyn_at_[hidden])
Date: 2011-06-14 12:01:02

"Krzysztof Czainski" wrote in message
>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> >?

1) doesn't work
2) is an idea, but I was hoping to avoid dynamic allocation in cases where I
know the max size

Michael Goldshteyn

Boost list run by bdawes at, gregod at, cpdaniel at, john at