How should I return multiple const values from a function?

Charles Hixson charleshixsn at earthlink.net
Mon Jan 2 23:27:44 UTC 2023


On 1/2/23 15:14, Paul Backus via Digitalmars-d-learn wrote:
> On Monday, 2 January 2023 at 22:53:13 UTC, Charles Hixson wrote:
>> I want to return values of the template parameter type, so there 
>> doesn't seem to be any way to dup or idup them.
>
> It's hard to say where exactly you're going wrong if you only post the 
> error message, without the code that produced it. If you post your 
> code (or a simplified version with the same problem), I'm sure someone 
> will be able to help you.
O. Key and Val are template parameters, and Key has a less method defined.

-- 
Javascript is what you use to allow third part programs you don't know anything about and doing you know not what to run on your computer.



More information about the Digitalmars-d-learn mailing list