mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 22:05: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:
@@ -655,6 +655,7 @@ at Class.tests.cpp:<line number>
|
||||
<testCase name="#1319: Sections can have description (even if it is not saved/SectionName" duration="{duration}"/>
|
||||
<testCase name="#1403" duration="{duration}"/>
|
||||
<testCase name="#1548" duration="{duration}"/>
|
||||
<testCase name="#3001: Enum-based bitfields can be captured" duration="{duration}"/>
|
||||
<testCase name="#809" duration="{duration}"/>
|
||||
<testCase name="#833" duration="{duration}"/>
|
||||
<testCase name="#872" duration="{duration}"/>
|
||||
|
Reference in New Issue
Block a user