Boost logo

Boost Users :

From: Chris Weed (chrisweed_at_[hidden])
Date: 2008-06-04 17:42:12


I am a little confused by the section of code in the ifdef of
portable_binary_oarchive

48 #ifdef BOOST_BIG_ENDIAN
49 cptr += (sizeof(boost::intmax_t) - size);
50 if(m_flags & endian_big)
51 reverse_bytes(size, cptr);
52 #else
53 if(m_flags & endian_big)
54 reverse_bytes(size, cptr);
55 #endif

I would expect line 50 to be
if(m_flags & endian_little)

Chris


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