Commit c4a10f9
Fix error: template-id not allowed for constructor in C++20
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)1 parent 4541ce9 commit c4a10f9
File tree
2 files changed
+3
-3
lines changed- include/ola/thread
- plugins/usbdmx
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments