How to call a templated overload of opIndex

Nick Treleaven nick at geany.org
Fri Aug 15 17:51:50 UTC 2025


On Friday, 15 August 2025 at 17:38:53 UTC, Marc wrote:
> Hello,
> In my typed data frames I've this type of code. It works for 
> default value (float) but I can't call `opIndex!double[i, j]` 
> or `opIndex!string[i,j]`.

You need to write `opIndex!double(i, j)` to manually call the 
method. (You're using square brackets).


More information about the Digitalmars-d-learn mailing list