[Issue 1012] cannot instantiate template with no or default arguments without !()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 16 11:14:56 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=1012


Jakob Ovrum <jakobovrum at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakobovrum at gmail.com


--- Comment #9 from Jakob Ovrum <jakobovrum at gmail.com> 2012-11-16 11:14:54 PST ---
(In reply to comment #8)
> issue# 6082 might be reasonable to implement (I don't know),

It's not possible in the general case.

http://stackoverflow.com/questions/13151072/

It might still be an attractive feature to have for specific, common cases, but
it would either have to be defined as a "compiler's best effort" thing, which
hurts portability, or defined to only work for a select few specific cases.

The latter is what's currently done for IFTI, but the rules are intuitive,
especially thanks to eponymous templates.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list