Can not override template and nontemplate function

monarch_dodra monarchdodra at gmail.com
Sat Aug 31 05:19:16 PDT 2013


On Saturday, 31 August 2013 at 11:22:17 UTC, Sönke Ludwig wrote:
> Also, for completeness, it's possible to work around it for now 
> using a parameter-less template:
>
> void foo()(bool param)
> {
>   // ...
> }
> void foo(bool param)()
> {
>   // ...
> }

While we are at it, this is also the way to "force" attribute 
inference on a function.


More information about the Digitalmars-d mailing list