D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6979 - hasUnsharedAliasing cannot accept plural parameters
Summary: hasUnsharedAliasing cannot accept plural parameters
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-20 07:13 UTC by SHOO
Modified: 2011-12-03 06:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description SHOO 2011-11-20 07:13:52 UTC
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.