diff options
author | Phoebe Liang <phoebeliang@google.com> | 2023-01-27 10:54:21 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-01-27 10:55:06 -0800 |
commit | 8a0693b2a75f21e508ffcd172efda3bbb638a275 (patch) | |
tree | 6cfae7297fcea3585ef6329f3e481a272e562b81 /absl/crc | |
parent | 68a1de6f86b3e11ddf54841f11f63e60ed5bdc0a (diff) |
Adds `AbslStringify` support to `absl::Hex` and `absl::Dec`
`absl::Hex` and `absl::Dec` are now stringifiable through `AbslStringify`. This means that they can be passed to logging, `absl::StrFormat`, `absl::StrCat` and `absl::Substitute`. Note that this change will break unsupported usages of `absl::AlphaNum`. `absl::AlphaNum` is not intended to be instantiated as a stack variable due to lifetime issues. Unsupported usages include:
* constructing an `absl::AlphaNum` as a local variable.
* For example, `absl::AlphaNum a = absl::Hex(...);`
* declaring an `absl::AlphaNum` as a member variable
Usage of `absl::AlphaNum` as a function parameter will continue to be supported.
PiperOrigin-RevId: 505158534
Change-Id: Idecdf0b3d137482e86b393c7480229343d68eb36
Diffstat (limited to 'absl/crc')
0 files changed, 0 insertions, 0 deletions