Bug 11577 – Template std.typetuple.NoDuplicates removes const types for classes and structs

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-21T19:52:13Z
Last change time
2024-12-01T16:19:11Z
Assigned to
alex.jercaianu
Creator
GoldMax
See also
https://issues.dlang.org/show_bug.cgi?id=20863
Moved to GitHub: phobos#10012 →

Comments

Comment #0 by goldmax3000 — 2013-11-21T19:52:13Z
// OK static assert(is(NoDuplicates!(int, const(int)) == TypeTuple!(int, const(int)))); // Error - result is (DateTime) static assert(is(NoDuplicates!(DateTime, const(DateTime)) == TypeTuple!(DateTime, const(DateTime)))); // Error - result is (Object) static assert(is(NoDuplicates!(Object, const(Object)) == TypeTuple!(Object, const(Object))));
Comment #1 by alex.jercaianu — 2017-10-10T10:54:10Z
What would be the correct behaviour here? Should it treat the const and nonconst as duplicates?
Comment #2 by bugzilla — 2019-12-11T07:42:20Z
Meanwhile all three of them fail.
Comment #3 by schveiguy — 2020-07-10T13:42:26Z
This is related to issue 20863 If that issue is fixed, this one gets fixed as well. But of course, one could probabl fix this without fixing 20863. So I won't close this as a duplicate.
Comment #4 by robert.schadek — 2024-12-01T16:19:11Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10012 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB