How to call opCall as template?

Namespace rswhite4 at googlemail.com
Thu Jan 30 10:02:04 PST 2014


On Thursday, 30 January 2014 at 17:46:19 UTC, Frustrated wrote:
> Also,
>
> http://dlang.org/operatoroverloading.html#Dispatch
>
> and possible solution to your problem:
>
> http://www.digitalmars.com/d/archives/digitalmars/D/opDispatch_and_template_parameters_117095.html
>
> Couldn't get code to compile though... but if it did, it should
> solve your problem.

opDispatch is called if you try to call a non existing member. 
But in this case you don't call a member. ;)


More information about the Digitalmars-d-learn mailing list