fix: remove = operator from locaton
This commit is contained in:
parent
7a1cc27514
commit
6245a41fe0
@ -56,15 +56,6 @@ location_t location_t::intersect(location_t other) const {
|
||||
return a;
|
||||
}
|
||||
|
||||
location_t &location_t::operator=(const location_t &other) {
|
||||
if (this->filename != other.filename) throw "Can't assign to location with different filename."s;
|
||||
this->line = other.line;
|
||||
this->start = other.start;
|
||||
this->length = other.length;
|
||||
this->code_start = other.code_start;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool location_t::operator==(const location_t &other) const {
|
||||
if (this->filename != other.filename) return false;
|
||||
if (this->line != other.line) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user