Releases: abseil/abseil-cpp
Releases · abseil/abseil-cpp
Abseil LTS branch, June 2022
Abseil LTS 20220623
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: 273292d
Abseil LTS branch, Nov 2021
Abseil LTS 20211102
What's New:
absl::Cord
is now implemented as a b-tree. The new implementation offers improved performance in most workloads.absl::SimpleHexAtoi()
has been added tostrings
library for parsing hexadecimal strings.
Breaking Changes:
- Bazel builds now depend on the bazelbuild/platforms repository. See Abseil's WORKSPACE file for an example of how to add this dependency.
Baseline: 2151058
Abseil LTS branch, March 2021, Patch 2
Abseil LTS 20210324.2
What's New:
- The
cleanup
library has been released. This library contains the control-flow-construct-like typeabsl::Cleanup
which is used for executing a callback on scope exit. - The
numeric
library now includesbits.h
, a polyfill header containing implementations of C++20's bitwise math functions. - Abseil now installs pkg-config files to make it easier to use Abseil with some other build systems.
- Abseil now respects the default CMake installation paths. Standard CMake variables like
CMAKE_INSTALL_PREFIX
can be used to change the installation path.
Breaking Changes:
- The empty
absl::container
target has been removed from the CMake build. This target had no effect and references to this target in user code can safely be removed.
Baseline: 997aaf3
Cherry pick: e1d388e (Patch 1)
Cherry pick: 278e0a0 (Patch 2)
Abseil LTS branch, March 2021, Patch 1
Abseil LTS 20210324.1
What's New:
- The
cleanup
library has been released. This library contains the control-flow-construct-like typeabsl::Cleanup
which is used for executing a callback on scope exit. - The
numeric
library now includesbits.h
, a polyfill header containing implementations of C++20's bitwise math functions. - Abseil now installs pkg-config files to make it easier to use Abseil with some other build systems.
- Abseil now respects the default CMake installation paths. Standard CMake variables like
CMAKE_INSTALL_PREFIX
can be used to change the installation path.
Breaking Changes:
- The empty
absl::container
target has been removed from the CMake build. This target had no effect and references to this target in user code can safely be removed.
Abseil LTS branch, March 2021
Abseil LTS 20210324.0
What's New:
- The
cleanup
library has been released. This library contains the control-flow-construct-like typeabsl::Cleanup
which is used for executing a callback on scope exit. - The
numeric
library now includesbits.h
, a polyfill header containing implementations of C++20's bitwise math functions. - Abseil now installs pkg-config files to make it easier to use Abseil with some other build systems.
- Abseil now respects the default CMake installation paths. Standard CMake variables like
CMAKE_INSTALL_PREFIX
can be used to change the installation path.
Breaking Changes:
- The empty
absl::container
target has been removed from the CMake build. This target had no effect and references to this target in user code can safely be removed.
Baseline: 997aaf3
Abseil LTS branch, Sept 2020, Patch 3
Abseil LTS 20200923, Patch 3
What's New:
absl::StatusOr<T>
has been released. See our blog
post for more information.- Abseil Flags reflection interfaces have been released.
- Abseil Flags memory usage has been significantly optimized.
- Abseil now supports a "hardened" build mode. This build mode enables
runtime checks that guard against programming errors that may lead
to security vulnerabilities.
Notable Fixes:
- Sanitizer dynamic annotations like
AnnotateRWLockCreate
that are
also defined by the compiler sanitizer implementation are no longer
also defined by Abseil. - Sanitizer macros are now prefixed with
ABSL_
to avoid naming collisions. - Sanitizer usage is now automatically detected and no longer requires
macros likeADDRESS_SANITIZER
to be defined on the command line.
Breaking Changes:
- Abseil no longer contains a
dynamic_annotations
library. Users
using a supported build system (Bazel or CMake) are unaffected by
this, but users manually specifying link libraries may get an error
about a missing linker input.
Baseline: 7680a5f
Cherry pick: bd0de71 (Patch 1)
Cherry pick: 0f3bb46 (Patch 2)
Cherry pick: 6f9d96a (Patch 3)
Abseil LTS branch, Sept 2020, Patch 2
Abseil LTS 20200923, Patch 2
What's New:
absl::StatusOr<T>
has been released. See our blog
post for more information.- Abseil Flags reflection interfaces have been released.
- Abseil Flags memory usage has been significantly optimized.
- Abseil now supports a "hardened" build mode. This build mode enables
runtime checks that guard against programming errors that may lead
to security vulnerabilities.
Notable Fixes:
- Sanitizer dynamic annotations like
AnnotateRWLockCreate
that are
also defined by the compiler sanitizer implementation are no longer
also defined by Abseil. - Sanitizer macros are now prefixed with
ABSL_
to avoid naming collisions. - Sanitizer usage is now automatically detected and no longer requires
macros likeADDRESS_SANITIZER
to be defined on the command line.
Breaking Changes:
- Abseil no longer contains a
dynamic_annotations
library. Users
using a supported build system (Bazel or CMake) are unaffected by
this, but users manually specifying link libraries may get an error
about a missing linker input.
Baseline: 7680a5f
Cherry pick: bd0de71 (Patch 1)
Cherry pick: 0f3bb46 (Patch 2)
Abseil LTS branch, Sept 2020, Patch 1
Abseil LTS 20200923, Patch 1
What's New:
absl::StatusOr<T>
has been released. See our blog
post for more information.- Abseil Flags reflection interfaces have been released.
- Abseil Flags memory usage has been significantly optimized.
- Abseil now supports a "hardened" build mode. This build mode enables
runtime checks that guard against programming errors that may lead
to security vulnerabilities.
Notable Fixes:
- Sanitizer dynamic annotations like
AnnotateRWLockCreate
that are
also defined by the compiler sanitizer implementation are no longer
also defined by Abseil. - Sanitizer macros are now prefixed with
ABSL_
to avoid naming collisions. - Sanitizer usage is now automatically detected and no longer requires
macros likeADDRESS_SANITIZER
to be defined on the command line.
Breaking Changes:
- Abseil no longer contains a
dynamic_annotations
library. Users
using a supported build system (Bazel or CMake) are unaffected by
this, but users manually specifying link libraries may get an error
about a missing linker input.
Abseil LTS branch, Feb 2020, Patch 3
20200225.3 Adds bounds-checking to the second range of absl container algorithms…
Abseil LTS branch, Aug 2019, Patch 1
20190808.1 Adds bounds-checking to the second range of absl container algorithms…