On Saturday, 17 March 2012 at 19:49:24 UTC, Ali Çehreli wrote:
On 03/17/2012 09:27 AM, Tongzhou Li wrote:
I'm learning D, and trying to convert My C++ code into D:
http://pastebin.com/eCz9DdZ3
I wrote: auto stack = SList!(Tuple!(double, char))();
But I got an error
Error: function
std.typecons.Tuple!(double,char).Tuple.opEquals!(const(Tuple!(double,char))).opEquals
(const(Tuple!(double,char)) rhs) is not callable using
argument types
(const(Tuple!(double,char))) const
Does the function Tuple.opEquals miss a const qualifier?
Sorry for my bad English:)
There are still many const-correctness issues with Phobos. You
hit this bug:
http://d.puremagic.com/issues/show_bug.cgi?id=5783
Ali
OK. I hope it can be fixed soon.