www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - SList!(Tuple!int) == error?

reply "Mehrdad" <wfunction hotmail.com> writes:
Why is it an error to have a singly-linked list of Tuple!(int)?

phobos\std\container.d(938):
Error: function
std.typecons.Tuple!(int).Tuple
.opEquals!(const(Tuple!(int)))
.opEquals (const(Tuple!(int)) rhs)
is not callable using argument types
(const(Tuple!(int))) const
Error: template instance std.container.SList!(Tuple!(int)) error 
instantiating
Oct 15 2012
parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Tuesday, October 16, 2012 04:36:37 Mehrdad wrote:
 Why is it an error to have a singly-linked list of Tuple!(int)?
 
 phobos\std\container.d(938):
 Error: function
 std.typecons.Tuple!(int).Tuple
 .opEquals!(const(Tuple!(int)))
 .opEquals (const(Tuple!(int)) rhs)
 is not callable using argument types
 (const(Tuple!(int))) const
 Error: template instance std.container.SList!(Tuple!(int)) error
 instantiating

Tuple's signatures for opEquals aren't correct: http://d.puremagic.com/issues/show_bug.cgi?id=8584 - Jonathan M Davis
Oct 15 2012