Improving UnsavedFile operator==
This commit is contained in:
parent
27e1400558
commit
81811964c3
@ -43,9 +43,12 @@ struct UnsavedFile
|
|||||||
// methods. I have no clue why, but it won't compile without it.
|
// methods. I have no clue why, but it won't compile without it.
|
||||||
// TODO: report this problem on the Boost bug tracker, the default equality
|
// TODO: report this problem on the Boost bug tracker, the default equality
|
||||||
// operator should be more than adequate here
|
// operator should be more than adequate here
|
||||||
bool operator==( const UnsavedFile &other) const
|
bool operator== ( const UnsavedFile &other ) const
|
||||||
{
|
{
|
||||||
return filename_ == other.filename_ && contents_ == other.contents_;
|
return
|
||||||
|
filename_ == other.filename_ &&
|
||||||
|
contents_ == other.contents_ &&
|
||||||
|
length_ == other.length_;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user