Skip to content

detail::CheckEnumCompatibleType: Use correct default

Thomas Braun requested to merge fix-enum-type-check into main

In b288f34f (DeviceAttribute: Make I/O operators fail at compile time for unsupported enum types, 2023-08-02) we reworked the type check for the underlying types in enums.

What was missed is that when the specialized template is disabled, because the type is not an enumeration at all, the default for CheckEnumCompatibleType::value should be true because we treat all types as valid if they are not enumerations.

Close #1254 (closed)

Merge request reports