
12 Oct
2006
12 Oct
'06
4:29 p.m.
Johan RĂ¥de wrote:
The problem is <boost/endian.hpp>. According to <boost/detail/endian.hpp> the platform is little endian. But it is clearly big endian.
One thing you've got to watch here is that the endianness of ints and pointers isn't necessarily the same as that for reals. And just to throw a spanner in the works, I believe the Itanium can have it's endianness altered at runtime. Whether any OS's will let you do that without crashing your program, I don't know, but I could certainly see uses for changing the endianness of reals at runtime (think big distributed applications, running over mixed hardware). John.