Commit 00faa0d
committed
fix: avoid per-instantiation vtable issues with MinGW GCC in doctest
Replace INFO() macro calls with concrete StringContextScope class to work
around MinGW GCC generating a unique vtable per template instantiation.
INFO() creates ContextScope<Lambda> which triggers this issue; the concrete
class has a single vtable definition shared across all instantiations.
- Add StringContextScope struct inheriting from doctest::detail::ContextScopeBase
- Add make_context_info() helper to create context without template lambdas
- Update CHECK_BATCH_EQ, CHECK_SCALAR_EQ, CHECK_VECTOR_EQ macros to use new helper1 parent f9079f1 commit 00faa0d
1 file changed
+30
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
389 | 407 | | |
390 | 408 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
397 | 417 | | |
398 | 418 | | |
399 | 419 | | |
400 | 420 | | |
401 | | - | |
402 | | - | |
| 421 | + | |
| 422 | + | |
403 | 423 | | |
404 | 424 | | |
405 | 425 | | |
406 | 426 | | |
407 | 427 | | |
408 | | - | |
409 | | - | |
| 428 | + | |
| 429 | + | |
410 | 430 | | |
411 | 431 | | |
412 | 432 | | |
| |||
0 commit comments