mirror of
https://github.com/catchorg/Catch2
synced 2026-02-26 17:22:11 +00:00
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
17 KiB
17 KiB