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 thestd::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
andpacked_repeated_fields
. This fixes move construction and move assignement inpbf_writer
and disables the copy construction and copy assignement which don't have clear semantics. It introduces an invalid or empty state in thepbf_writer
,pbf_builder
, andpacked_repeated_fields
classes used for default-constructed, moved from, or committed objects. There is a newcommit()
function forpbf_writer
and thepacked_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 abool
instead of asize_t
.