On Thursday, 4 January 2018 at 16:09:07 UTC, Simen Kjærås wrote:
On Thursday, 4 January 2018 at 15:50:35 UTC, Vino wrote:
[...]

ReturnType!Fn[0] tries to give you the 0th field of the tuple, but as the error message indicates, you can't do that without an instance. What you want is the *type* of the field, as given by typeof:

    typeof(ReturnType!Fn[0]) Dcol;

This can be made a bit simpler by noticing that ReturnType is unnecessary here:

    typeof(Fn()[0]) Dcol;

However, if Fn() takes a bunch of complex parameters, this might not actually be simpler.

--
  Simen

HI Simen,

 Thank you very much, your solution was helpful.

From,
Vino.B

Reply via email to