protozero v1.5.3 Release Notes

Release Date: 2017-09-22 // over 6 years ago
  • โž• Added

    • ๐Ÿ“š More documentation.
    • ๐Ÿ†• New size() method on iterator range used for packed repeated fields to find out how many elements there are in the range. This is much faster compared to the std::difference() call you had to do before, because the varints don't have to be fully decoded. See [Advanced Topics](doc/advanced.md) for details.

    ๐Ÿ”„ Changed

    • โšก๏ธ Updated clang-tidy settings in Makefiles and fixed a lot of minor issues reported by clang-tidy.
    • โšก๏ธ Update included catch.hpp to version 1.10.0.
    • Miscellaneous code cleanups.
    • Support for invalid state in pbf_writer and packed_repeated_fields. This fixes move construction and move assignement in pbf_writer and disables the copy construction and copy assignement which don't have clear semantics. It introduces an invalid or empty state in the pbf_writer, pbf_builder, and packed_repeated_fields classes used for default-constructed, moved from, or committed objects. There is a new commit() function for pbf_writer and the packed_repeated_fields which basically does the same as the destructor but can be called explicitly.

    ๐Ÿ›  Fixed

    • The empty() method of the iterator range now returns a bool instead of a size_t.