`const int opCmp(ref const Vector vec) const {`
Should work