DList!(Tuple!(TypeInfo_Class)) causes compilation error

Zhenya zheny at list.ru
Sun Dec 30 13:28:35 PST 2012


On Sunday, 30 December 2012 at 20:09:57 UTC, Zhenya wrote:
> Hi!
> I just need DList!(Tuple!(TypeInfo_Class)) for my n-dimensional 
> dispatcher,
> but compiler says:
>
> Error: function 
> std.typecons.Tuple!(TypeInfo_Class).Tuple.opEquals!(const(Tuple!(TypeInfo_Class))).opEquals 
> (const(Tuple!(TypeInfo_Class)) rhs) is not callable using 
> argument types (const(Tuple!(TypeInfo_Class))) const
>
> Could you give me some advice/workaround for this?

Used

struct Wrapper(T)
{
	T t;
	this(T a)
	{
		t = a;
	}
	alias t this;
}

Ugly a little bit,but works.

Could anyone explain me please what's wrong with 
Tuple!TypeInfo_Class opEquals?


More information about the Digitalmars-d-learn mailing list