Ticket #253 (new defect)

Opened 6 hours ago

CapeArrayEnumeration does not work with std::ranges

Reported by: jasper Owned by: jasper
Priority: minor Milestone:
Component: Client Header Files Version:
Keywords: Cc:

Description

CapeArrayEnumeration? works with e.g. std::fill

COBIA::CapeArrayEnumeration<CAPEOPEN_1_2::CapePhaseStatus> phase_status;
phase_status.resize(3);
std::fill(phase_status.begin(),phase_status.end(),CAPE_UNKNOWNPHASESTATUS);

but not with std::ranges:

COBIA::CapeArrayEnumeration<CAPEOPEN_1_2::CapePhaseStatus> phase_status;
phase_status.resize(3);
std::ranges::fill(phase_status,CAPE_UNKNOWNPHASESTATUS);

It appears that the problem lies in the difference between the template parameters elType (here: CapePhaseStatus?) and elActualType (CapeEnumeration?), because of which the concepts are not fulfilled.

Note: See TracTickets for help on using tickets.