Bitsery v4.6.0 Release Notes
Release Date: 2019-03-12 // about 5 years ago-
๐ Features
- new extensions StdTuple and StdVariant for
std::tuple
andstd::variant
. These are the first extensions that requires C++17, or higher, standard enabled. Althoughstd::tuple
is C++11 type, but from usage perspective it has exactly the same requirements asstd::variant
and relies heavily on having class template argument deduction guides to make it convenient to use. You can easily usestd::tuple
without any extension at all, so the main motivation was to create convenient interface for StdVariant and use the same interface for StdTuple as well.- instead of providing custom lambda to overload each type in tuple or variant, there was added several helper callable objects.
OverloadValue wrapper around
s.value<N>(o)
, OverloadExtValue wrapper arounds.ext<N>(o, Ext{})
and OverloadExtObject wrapper arounds.ext(o, Ext{})
.
- instead of providing custom lambda to overload each type in tuple or variant, there was added several helper callable objects.
OverloadValue wrapper around
- new extensions StdDuration and StdTimePoint for
std::chrono::duration
andstd::chrono::time_point
.
๐ Improvements
tests now uses
gtest_discover_tests
function, to automatically discover tests, which requires CMake 3.10. - new extensions StdTuple and StdVariant for