
10 Jun
2006
10 Jun
'06
3:16 p.m.
me22 wrote:
On 6/9/06, Yuval Ronen <ronen_yuval@yahoo.com> wrote:
Are you implementing the big_endian<T> class as holding a member of type T? If you do (that's the most logical way, I think), then it sounds most strange to me. Is it just one compiler that's causing problems? Have you tried on more than one compiler?
Yes, it's holding it as a member.
I've tried it (with the same results) in g++ 3.3.6, 3.4.6, and 4.1.1. I just installed icc to try it with that, but I think there's a library mismatch or something with the rest of my system as I can't even get hello world to compile with it.
VC8 gives me sizeof( boost::exact<24> ) = 0x3 sizeof( boost::big_endian< boost::exact<24> > ) = 0x3 so maybe it's a gcc bug...