Skip to content

Fix error: template-id not allowed for constructor and some Doxygen errors #2012

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

Merged
merged 3 commits into from
Jun 27, 2025

Conversation

peternewman
Copy link
Member

No description provided.

@peternewman peternewman added this to the 0.10.10 milestone Jun 25, 2025
Building ola fails on Fedora with GCC-14:

In file included from ./include/ola/Clock.h:32:
./include/ola/base/Macro.h:45:11: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]
   45 |   TypeName(const TypeName&);               \
      |           ^
./include/ola/thread/FuturePrivate.h:92:3: note: in expansion of macro 'DISALLOW_COPY_AND_ASSIGN'
   92 |   DISALLOW_COPY_AND_ASSIGN(FutureImpl<T>);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
./include/ola/base/Macro.h:45:11: note: remove the '< >'
   45 |   TypeName(const TypeName&);               \
      |           ^

When a class already is templatified, the templification can't be
repeated on contained methods.

(cherry picked from commit d9b9c78)
@peternewman peternewman changed the title Remove some duplicate test category config Fix error: template-id not allowed for constructor in C++20 Jun 26, 2025
@DaAwesomeP
Copy link
Member

DaAwesomeP commented Jun 26, 2025

@peternewman may you please take at the other C++20 related PRs as well (#1889, #1890, #1989, possibly #1975)? Thanks!

@peternewman peternewman changed the title Fix error: template-id not allowed for constructor in C++20 Fix error: template-id not allowed for constructor and some Doxygen errors Jun 27, 2025
@peternewman peternewman requested a review from kripton June 27, 2025 21:42
@peternewman
Copy link
Member Author

@peternewman may you please take at the other C++20 related PRs as well (#1889, #1890, #1989, possibly #1975)? Thanks!

Thanks @DaAwesomeP . I'd like to address the general C++20 etcetera PRs via making a decision in #2005 first, I just pulled this bit in, as I noticed we'd had the same issue in the two newest CI builds and it doesn't upset the older stuff.

@peternewman peternewman merged commit 3566c28 into OpenLightingProject:0.10 Jun 27, 2025
19 of 22 checks passed
@peternewman peternewman removed the request for review from kripton June 28, 2025 19:27
@peternewman
Copy link
Member Author

Removing the retrospective and the review request given #2013 essentially mirrors this and got reviewed.

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