20220623.2
版本发布时间: 2024-02-13 03:56:30
abseil/abseil-cpp最新发布版本:20240722.0(2024-08-02 02:09:08)
Abseil LTS 20220623.2
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_DEPRECATED
macro now works with the GCC compiler. GCC users that are experiencing new warnings can use-Wno-deprecated-declatations
silence the warnings or use-Wno-error=deprecated-declarations
to see warnings but not fail the build. -
ABSL_CONST_INIT
uses the C++20 keywordconstinit
when 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.
Baseline: 273292d1cfc0a94a65082ee350509af1d113344d Cherry pick: 8c0b94e793a66495e0b1f34a5eb26bd7dc672db0 (Patch 1) Cherry pick: 704de406be1603c34755538664e29c37391b93f6 (Patch 2)
1、 abseil-cpp-20220623.2.tar.gz 1.87MB