Ticket #167 (closed enhancement: invalid)

Opened 2 years ago

Last modified 2 years ago

ConstCapeArrayReal scalar constructor take reference to real

Reported by: jasper Owned by: jasper
Priority: minor Milestone: Maintenance of Phase II
Component: Client Header Files Version: 1.2.0.11
Keywords: Cc:

Description

Constructor

ConstCapeArrayReal arr{1.2};

does not work, as the scalar constructor takes a reference to a real. This works but is unpleasant for a constant:

CapeReal value=1.2;
ConstCapeArrayReal arr{value};

Change History

comment:1 Changed 2 years ago by jasper

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

comment:2 Changed 2 years ago by jasper

Cannot be done - the constructor conflicts with the by-reference and pointer constructor.

comment:3 Changed 2 years ago by jasper

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:4 Changed 2 years ago by jasper

  • Status changed from reopened to closed
  • Resolution set to invalid

comment:5 Changed 2 years ago by michelpons

I don't understand what is at stake here. Is that an array of real type which is involved here? Then why a single value? Can't figure what is described here.

comment:6 Changed 2 years ago by jasper

See the two bits of code in the problem description. The one-liner is nicer, but not possible. The two-liner works fine as is.

comment:7 Changed 2 years ago by michelpons

So is there something to report in release notes for version 1.2.0.11?

comment:8 Changed 2 years ago by jasper

No - the ticket is invalid. No fix was made.

Note: See TracTickets for help on using tickets.