Skip to content

Fix compilation by removing template id from constructor#1989

Open
aroffringa wants to merge 2 commits intoOpenLightingProject:masterfrom
aroffringa:fix-template-id-in-constructor
Open

Fix compilation by removing template id from constructor#1989
aroffringa wants to merge 2 commits intoOpenLightingProject:masterfrom
aroffringa:fix-template-id-in-constructor

Conversation

@aroffringa
Copy link
Copy Markdown
Contributor

@aroffringa aroffringa commented Jan 19, 2025

Fixes #1982.

(The use of macro's like this might be reconsidered as well, it's not very C++-ish.)

@aroffringa aroffringa force-pushed the fix-template-id-in-constructor branch from 4006f21 to 6f8c97c Compare March 21, 2026 18:15
@aroffringa
Copy link
Copy Markdown
Contributor Author

I've rebased the branch, but it could be this is now redundant: #2012 also did some changes to the same line, but with a different solution. I hadn't seen that fix and somehow didn't have it in my local clone yet.

It is though more >= C++11 ish to delete the constructor as in my fix, compared to the use of macros, but if we want to move in that direction it might be better to remove the macro and all uses of it at once. I'm happy to make that change -- Is that a direction we should move, @nomis52 , or would you rather close this MR for now?

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.

Build is broken with clang-19: implicit instantiation of undefined template 'std::char_traits<unsigned char>'

2 participants