Bug 6979 – hasUnsharedAliasing cannot accept plural parameters

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-11-20T07:13:00Z
Last change time
2011-12-03T06:44:45Z
Assigned to
nobody
Creator
zan77137

Comments

Comment #0 by zan77137 — 2011-11-20T07:13:52Z
This code doesn't work! ---- import std.traits; static assert(!hasUnsharedAliasing!(int, shared(int)*)); ---- Though it has the interface that can accept plural parameters, actually, it accepts only a single parameter. std.concurrency defines hasLocalAliasing for this purpose, but hasUnsharedAliasing should be like this.
Comment #1 by k.hara.pg — 2011-12-03T06:44:45Z