Abseil LTS branch, June 2022, Patch 1
·
2 commits
to lts_2022_06_23
since this release
Abseil LTS 20220623.1
What's New:
- Added
absl::AnyInvocable, a move-only function type. - Added
absl::CordBuffer, a type for buffering data for eventual inclusion anabsl::Cord, which is useful for writing zero-copy code. - Added support for command-line flags of type
absl::optional<T>.
Breaking Changes:
- CMake builds now use the flag
ABSL_BUILD_TESTING(default:OFF) to control whether or not unit tests are built. - The
ABSL_DEPRECATEDmacro now works with the GCC compiler. GCC users that are experiencing new warnings can use-Wno-deprecated-declatationssilence the warnings or use-Wno-error=deprecated-declarationsto see warnings but not fail the build. ABSL_CONST_INITuses the C++20 keywordconstinitwhen available. Some compilers are more strict about where this keyword must appear compared to the pre-C++20 implementation.- Bazel builds now depend on the bazelbuild/bazel-skylib repository. See Abseil's WORKSPACE file for an example of how to add this dependency.
Other:
- This will be the last release to support C++11. Future releases will require at least C++14.