| commit | 8e9b58419b41fe0d9dfe2e870f3164f446a0d7ab | [log] [tgz] |
|---|---|---|
| author | Alex Attar <[email protected]> | Fri Dec 06 13:20:57 2024 |
| committer | Copybara-Service <[email protected]> | Fri Dec 06 13:27:32 2024 |
| tree | dbc3e64e745842380c7d03b3c65a783ea5c806ba | |
| parent | 8385f10496532b425c4036d7e938393f683e5be9 [diff] |
Use using enum for JsonOptions (C++20) This CL updates the JsonWriter class to use the `using enum` declaration for JsonOptions, which is a C++20 feature. This removes the need for the previous workaround that manually defined static constexpr variables for each enum value. Change-Id: Id9a567f5e52cefca217cd14c03ceb5a53143aa18 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6072783 Reviewed-by: Francois Pierre Doray <[email protected]> Commit-Queue: Alex Attar <[email protected]> Reviewed-by: Kentaro Hara <[email protected]> Reviewed-by: Greg Thompson <[email protected]> Cr-Commit-Position: refs/heads/main@{#1392849} NOKEYCHECK=True GitOrigin-RevId: 88cdc6d086bdcf6a6fb1f14de4af7a0f72356706