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

[mycpp] Fix constructor with template arguments deleted in C++20 #2220

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

akinomyoga
Copy link
Collaborator

The constructor declaration/definition of the form template<typename T> class C { C<T>(); } is removed in C++20. This causes many compiler warnings in recent compilers. One can always declare it without template arguments (in any C++ versions): template<typename T> class C { C(); }.

@andychu andychu merged commit 45a426c into soil-staging Jan 4, 2025
18 checks passed
@andychu
Copy link
Contributor

andychu commented Jan 4, 2025

OK thanks, I didn't know this!

@akinomyoga akinomyoga deleted the c++20 branch January 4, 2025 15:38
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.

2 participants