Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParameterTypeTuple keeps storage class info but always compares equal #9915

Open
dlangBugzillaToGithub opened this issue Oct 25, 2011 · 0 comments
Labels
OS:Windows Issues Specific to Windows Severity:Normal

Comments

@dlangBugzillaToGithub
Copy link

andrej.mitrovich (@AndrejMitrovic) reported this on 2011-10-25T10:49:19Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=6853

CC List

  • smjg

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).
@LightBender LightBender removed the P3 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS:Windows Issues Specific to Windows Severity:Normal
Projects
None yet
Development

No branches or pull requests

2 participants