DIP23 Counter Proposal

Jonathan M Davis jmdavisProg at gmx.com
Tue Feb 5 23:53:38 PST 2013


On Wednesday, February 06, 2013 08:34:32 Jacob Carlborg wrote:
> On 2013-02-06 04:43, Timon Gehr wrote:
> > Yes, a function template. Note that functions overload against function
> > templates.
> 
> Maybe I'm misunderstanding something there but since when? Example:
> 
> void foo () {}
> void foo (T) (T t) {}
> 
> void main () {}
> 
> Error: template main.foo(T)(T t) conflicts with function main.foo at...

They're _supposed_ to, but it's a long-standing bug that they don't, and 
AFAIK, it has yet to be fixed.

- Jonathan M Davis


More information about the Digitalmars-d mailing list