Boost logo

Boost Users :

Subject: Re: [Boost-users] [variant] declaring recursive variants (Jerry Jeremiah)
From: Jerry Jeremiah (jerry.jeremiah_at_[hidden])
Date: 2011-11-17 12:42:45


乔志强 <qiaozhiqiang <at> leadcoretech.com> writes:

>
> MS Visual Studio 2010 SP1 compiled OK.
>
> But if use gcc, boost::variant<T> use boost:: sizeof_<T> and
> boost:: alignment_of <T>, and use sizeof(T), so need a complete type.
> Maybe gcc bug or bug of boost for gcc ?
> So you need workaround between // ADD THESE begin ////////////
> and // ADD THESE end ////////////, see next:
>

Thanks for the help! I was using gcc 4.6. I wonder why gcc performs
differently to MSVC? The fix was simple enough - thanks very much.

Jerry


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net