[serialization] portable binary archives invert no_header sense

The example portable binary archives (both directions) contain the following lines in their constructor bodies: if(0 != (flags & boost::archive::no_header)){ this->archive_base_t::init(flags); // ... more stuff } The test on flags value should be "==" rather than "!=", i.e. if(0 == (flags & boost::archive::no_header)){

Good call - fixed Robert Ramey Kim Barrett wrote:
The example portable binary archives (both directions) contain the following lines in their constructor bodies:
if(0 != (flags & boost::archive::no_header)){ this->archive_base_t::init(flags); // ... more stuff }
The test on flags value should be "==" rather than "!=", i.e.
if(0 == (flags & boost::archive::no_header)){ _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Kim Barrett
-
Robert Ramey