Can not override template and nontemplate function
Sönke Ludwig
sludwig at outerproduct.org
Sat Aug 31 04:22:14 PDT 2013
Am 31.08.2013 12:53, schrieb Andrej Mitrovic:
> On 8/31/13, ilya-stromberg <ilya-stromberg-2009 at yandex.ru> wrote:
>> D can not override template and nontemplate function.
>
> It was a long-standing bug which was fixed in git-head and will work
> in the 2.064 release.
>
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)()
{
// ...
}
More information about the Digitalmars-d
mailing list