[Issue 11829] New: Documentation of implicit template argument conversion out of date.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 27 04:40:29 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11829
Summary: Documentation of implicit template argument conversion
out of date.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: websites
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2013-12-27 04:40:28 PST ---
http://dlang.org/template.html
"Even if template arguments are implicitly converted to the same template
parameter type, they still refer to different instances:
struct TFoo(int x) { }
static assert(is(TFoo!(3) == TFoo!(2 + 1))); // 3 and 2+1 are both 3 of type
int
static assert(!is(TFoo!(3) == TFoo!(3u))); // 3u and 3 are different types"
I think this has been fixed in a recent release.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list