Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[contrib][postgres] Remove <> after constructor in the PG proxy code #37038

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

krinkinmu
Copy link
Contributor

Commit Message:

Angle brackets are not required after constructor and, maybe, aren't even correct, though I'm not 100% sure on what the standard says on the matter.

It seems like clang is fine with this syntax, but when you try to build Envoy with gcc it complains:

./contrib/postgres_proxy/filters/network/source/postgres_message.h: At global scope:
./contrib/postgres_proxy/filters/network/source/postgres_message.h:397:14: error: expected unqualified-id before ')' token
  397 |   Sequence<>() = default;
      |              ^
Target //contrib/exe:envoy-static failed to build

Given that it's at least unusual to have angle brackets after constructor in a class template specialization let's remove them and satisfy both gcc and clang.

Additional Description:

It's one of the issue that prevent contrib build with gcc. It's not the original issue reported in #31807, but that issue is what started the investigation.

Risk Level: Low
Testing: bazel build with --config=gcc and --config=docker-gcc options and in various compliation modes.
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Angle brackets are not required after constructor and,
maybe, aren't even correct, though I'm not 100% sure on
what the standard says on the matter.

It seems like clang is fine with this syntax, but when you
try to build Envoy with gcc it complains:

```
./contrib/postgres_proxy/filters/network/source/postgres_message.h: At global scope:
./contrib/postgres_proxy/filters/network/source/postgres_message.h:397:14: error: expected unqualified-id before ')' token
  397 |   Sequence<>() = default;
      |              ^
Target //contrib/exe:envoy-static failed to build
```

Given that it's at least unusual to have angle brackets after
constructor in a class template specialization let's remove
them and satisfy both gcc and clang.

Signed-off-by: Mikhail Krinkin <[email protected]>
Copy link
Contributor

@cpakulski cpakulski left a comment

Choose a reason for hiding this comment

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

@phlax phlax merged commit 62d5ceb into envoyproxy:main Nov 8, 2024
20 checks passed
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