You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import std.traits;
void foo(int) { }
void bar(ref int) { }
void main()
{
pragma(msg, ParameterTypeTuple!foo); // (int)
pragma(msg, ParameterTypeTuple!bar); // (ref int)
static assert(is(ParameterTypeTuple!foo ==
ParameterTypeTuple!bar)); // pass
}
If the storage classes are not compared, then ParameterTypeTuple should not keep them around. We have ParameterStorageClassTuple for that (which is itself full of bugs too).
The text was updated successfully, but these errors were encountered:
andrej.mitrovich (@AndrejMitrovic) reported this on 2011-10-25T10:49:19Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=6853
CC List
Description
import std.traits; void foo(int) { } void bar(ref int) { } void main() { pragma(msg, ParameterTypeTuple!foo); // (int) pragma(msg, ParameterTypeTuple!bar); // (ref int) static assert(is(ParameterTypeTuple!foo == ParameterTypeTuple!bar)); // pass } If the storage classes are not compared, then ParameterTypeTuple should not keep them around. We have ParameterStorageClassTuple for that (which is itself full of bugs too).The text was updated successfully, but these errors were encountered: