overloading function with function templates
Bill Baxter
dnewsgroup at billbaxter.com
Thu Dec 27 16:51:35 PST 2007
mstrlu wrote:
> Hello,
> I just discovered that its not possible to write a function template with the same identifier as an existing function ( even though the function arguments are different ):
>
I couldn't find it written down anywhere in the docs, but it is
definitely a well-known limitation of D templates.
Another major one is that implicit instantiation is an all-or-nothing
business. If you specify any template parameter you must specify them all.
And finally you can't overload across modules. Yet.
--bb
More information about the Digitalmars-d-learn
mailing list