[Issue 6852] Cannot compare instances of ParameterStorageClassTuple
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 4 22:13:39 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6852
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Platform|Other |All
Resolution| |FIXED
OS/Version|Windows |All
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-04-04 22:13:37 PDT ---
(In reply to comment #0)
> What gives? ParameterTypeTuple doesn't suffer from these issues. It seems it's
> impossible to compare equality of storage classes between two functions. :s
ParameterStorageClassTuple makes a tuple of values, so
> alias ParameterStorageClassTuple Stores;
>
> static assert(Stores!(t1) == Stores!(t2)); // NG
> static assert(Stores!T1 == Stores!T2); // NG
value comparison would work, but
> static assert(is(Stores!t1 == Stores!t2)); // NG
> static assert(is(Stores!T1 == Stores!T2)); // NG
type comparison would not work.
>From 2.063, value tuple comparison would work by fixing issue 9873.
--
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