mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-30 00:17:52 +00:00
Changed relative #includes and made SourceLineInfo sortable (added < op)
This commit is contained in:
parent
7f5615272b
commit
5eb7748a55
7 changed files with 9 additions and 5 deletions
|
@ -78,6 +78,9 @@ namespace Catch {
|
|||
bool SourceLineInfo::operator == ( SourceLineInfo const& other ) const {
|
||||
return line == other.line && file == other.file;
|
||||
}
|
||||
bool SourceLineInfo::operator < ( SourceLineInfo const& other ) const {
|
||||
return line < other.line || ( line == other.line && file < other.file );
|
||||
}
|
||||
|
||||
std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info ) {
|
||||
#ifndef __GNUG__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue