Error: TypeInfo.equals is not implemented

Stanislav Blinov stanislav.blinov at gmail.com
Sat Feb 8 06:08:52 PST 2014


opEquals should be const:

struct Decimal(int precision, int scale){
	bool opEquals(T)(T d) const
		if (isInstanceOf!(Decimal, T))
	{
		return false;
	}
}


More information about the Digitalmars-d-learn mailing list