Skip to content

formatter: use absl instead of std#13040

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
rebello95:formatter-absl
Sep 9, 2020
Merged

formatter: use absl instead of std#13040
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
rebello95:formatter-absl

Conversation

@rebello95
Copy link
Contributor

Fixes a compilation issue with Envoy Mobile on iOS caused by usage of std:: rather than absl:: introduced in 9d466c7, which is unavailable on iOS 11.

Past discussion of this issue: #12341 (comment)

cc @Pchelolo

Risk Level: Low
Testing: CI
Docs Changes: None

Signed-off-by: Michael Rebello me@michaelrebello.com

Signed-off-by: Michael Rebello <me@michaelrebello.com>
JsonFormatMapVisitor visitor{json_format_map_callback, providers_callback};
for (const auto& pair : *format.value_) {
ProtobufWkt::Value value = std::visit(visitor, pair.second);
ProtobufWkt::Value value = absl::visit(visitor, pair.second);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a linter for this also? Feel free to do this in a follow up.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattklein123 mattklein123 merged commit bb87633 into envoyproxy:master Sep 9, 2020
@rebello95 rebello95 deleted the formatter-absl branch September 10, 2020 00:25
rebello95 added a commit to envoyproxy/envoy-mobile that referenced this pull request Sep 14, 2020
Bumping primarily to include the changes from envoyproxy/envoy#12477 for decompressor trailers reporting.

Contains changes to fix compilation after:
- envoyproxy/envoy@d245c02
- envoyproxy/envoy@52ec66f

Also contains new fixes required by Envoy Mobile:
- envoyproxy/envoy#13039
- envoyproxy/envoy#13040

Signed-off-by: Michael Rebello <me@michaelrebello.com>
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Bumping primarily to include the changes from #12477 for decompressor trailers reporting.

Contains changes to fix compilation after:
- d245c02
- 52ec66f

Also contains new fixes required by Envoy Mobile:
- #13039
- #13040

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Bumping primarily to include the changes from #12477 for decompressor trailers reporting.

Contains changes to fix compilation after:
- d245c02
- 52ec66f

Also contains new fixes required by Envoy Mobile:
- #13039
- #13040

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants