mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-02 05:15:39 +02: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