Repository navigation
Commit ce50e7e
committed
Fix the build with C++20 and C++23
C++20 deprecates the implicit capture of this by [=], and GCC warns
about it, so capture this explicitly in slog's async_log_service, and
use a local pointer in the mDNS service advertiser, as the service
discovery implementation already does.
C++23 treats a returned local variable as an rvalue, which cannot bind
to the non-const copy constructor of Catch's OptBuilder, so take a const
reference instead.
Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>1 parent 9dabe3e commit ce50e7e
3 files changed
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
305 | | - | |
306 | | - | |
| 306 | + | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| 313 | + | |
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
315 | | - | |
316 | | - | |
| 317 | + | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
| 324 | + | |
322 | 325 | | |
323 | 326 | | |
324 | 327 | | |
325 | | - | |
326 | | - | |
| 328 | + | |
| 329 | + | |
327 | 330 | | |
328 | 331 | | |
329 | 332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3888 | 3888 | | |
3889 | 3889 | | |
3890 | 3890 | | |
3891 | | - | |
| 3891 | + | |
3892 | 3892 | | |
3893 | 3893 | | |
3894 | 3894 | | |
3895 | 3895 | | |
3896 | 3896 | | |
3897 | | - | |
| 3897 | + | |
3898 | 3898 | | |
3899 | 3899 | | |
3900 | 3900 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4794 | 4794 | | |
4795 | 4795 | | |
4796 | 4796 | | |
4797 | | - | |
| 4797 | + | |
4798 | 4798 | | |
4799 | 4799 | | |
4800 | 4800 | | |
| |||
0 commit comments