mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 05:45:39 +02:00
Add enum types to what is captured by value by default
As it turns out, enums can be used to declare bitfields, and we cannot form a reference to a bitfield in the cpature. Thus, we add `std::is_enum` as a criteria to the default for `capture_by_value`, so that enum-based bitfields are also captured by value and thus decomposable. Closes #3001
This commit is contained in:
@@ -1719,6 +1719,6 @@ due to unexpected exception with message:
|
||||
Why would you throw a std::string?
|
||||
|
||||
===============================================================================
|
||||
test cases: 431 | 331 passed | 76 failed | 7 skipped | 17 failed as expected
|
||||
assertions: 2267 | 2090 passed | 136 failed | 41 failed as expected
|
||||
test cases: 432 | 332 passed | 76 failed | 7 skipped | 17 failed as expected
|
||||
assertions: 2269 | 2092 passed | 136 failed | 41 failed as expected
|
||||
|
||||
|
Reference in New Issue
Block a user