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

Fix compilation with gcc14 #7036

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

buzzhuzz
Copy link
Contributor

@buzzhuzz buzzhuzz commented Oct 6, 2024

Description

Compilation using GCC-14 on Ubuntu 24.10 yelds warning (turned into the error by -Werror):

src/clipper2/Clipper2Lib/include/clipper2/clipper.core.h:117:26: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]
  117 |         explicit Point<T>(const Point<T2>& p) { Init(p.x, p.y); }
      |                          ^

Some details why C++ behaves this way could be found at https://eel.is/c++draft/diff.cpp17.class#2

Tests

Local compilation

Compilation using GCC-14 on Ubuntu 24.10 yelds warning (turned into the
error by -Werror):

src/clipper2/Clipper2Lib/include/clipper2/clipper.core.h:117:26: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]
  117 |         explicit Point<T>(const Point<T2>& p) { Init(p.x, p.y); }
      |                          ^

Some details why C++ behaves this way could be found at https://eel.is/c++draft/diff.cpp17.class#2
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.

1 participant