Ticket #253 (closed defect: fixed)

Opened 8 weeks ago

Last modified 6 weeks 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.

Change History

comment:1 Changed 6 weeks ago by jasper

  • Status changed from new to closed
  • Resolution set to fixed

comment:2 Changed 6 weeks ago by jasper

In [d1ccc5ba032f8e41366d7765bad22580abf7abe5]:

additional iterator fixes #253

Note: See TracTickets for help on using tickets.