[Issue 798] New: Template function overloading problems
Marcin Kuszczak
aarti at interia.pl
Sat Jan 6 07:43:01 PST 2007
d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=798
>
> Summary: Template function overloading problems
> Product: D
> Version: 1.00
> Platform: Other
> OS/Version: Linux
> Status: NEW
> Severity: normal
> Priority: P2
> Component: DMD
> AssignedTo: bugzilla at digitalmars.com
> ReportedBy: aarti at interia.pl
>
>
> class Test {
> static void func(T)(T v) {}
> // static void func() {} //Error! Solution: static void
> func()() {}
> // static void func(int i, float f) {} //Error! Solution: static void
> func()(int i, float f) {}
>
> static void opCall(T)(T t) {}
> static void opCall()() {}
> //Below line in fact conflicts with opCall()() as commenting it solves
> problem - no workaround known
> //static void opCall()(int i, float f) {}
>
> }
>
> void main() {
> }
>
>
> --
By mistake I left only static functions in example, but the problem occurs
for every function.
--
Regards
Marcin Kuszczak (Aarti_pl)
-------------------------------------
Ask me why I believe in Jesus - http://zapytaj.dlajezusa.pl (en/pl)
Doost (port of few Boost libraries) - http://www.dsource.org/projects/doost/
-------------------------------------
More information about the Digitalmars-d-bugs
mailing list