digitalmars.D.bugs - [Issue 6472] New: RedBlackTree.removeKey
- d-bugmail puremagic.com (33/33) Aug 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6472
- d-bugmail puremagic.com (17/17) Aug 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6472
- d-bugmail puremagic.com (8/8) Aug 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6472
- d-bugmail puremagic.com (6/6) Dec 10 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6472
- d-bugmail puremagic.com (9/9) Feb 05 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6472
- d-bugmail puremagic.com (9/9) Feb 10 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6472
http://d.puremagic.com/issues/show_bug.cgi?id=6472 Summary: RedBlackTree.removeKey Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: ellery-newcomer utulsa.edu 19:01:44 PDT --- dmd32 2.054 the code: import std.container; void main(){ auto t = make!(RedBlackTree!(string)); t.insert(["1","2","3"]); t.removeKey("1"); } the fireworks: error9.d(10): Error: template std.container.RedBlackTree!(string).RedBlackTree.removeKey(U) if (isImplicitlyConvertible!(U,Elem)) does not match any function template declaration error9.d(10): Error: template std.container.RedBlackTree!(string).RedBlackTree.removeKey(U) if (isImplicitlyConvertible!(U,Elem)) cannot deduce template function from argument types !()(string) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 11 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6472 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg gmx.com Severity|normal |enhancement PDT --- t.removeKey!string("1"); I believe that this is a case of template inferrence failing, because it's deciding that the input to removeKey is a range a dchars rather than a single string, and you can't covert dchar to the element type of the container (string), and so compilation fails. I don't know how fixable it is with template constraints. Hopefully someone can sort it out, but it may be that the compiler is just too stupid in this case. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 11 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6472 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 11 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6472 PST --- https://github.com/D-Programming-Language/phobos/pull/363 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 10 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6472 Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/da2cf56892606fa81624f30dbbff3d2dbe77508b -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 05 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6472 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 10 2012