Ticket #167 (closed enhancement: invalid)
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: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.
Note: See
TracTickets for help on using
tickets.
In [b4fd02c197c73fd6b25cf1d99790a35dd80ff9b0]: