Changed relative #includes and made SourceLineInfo sortable (added < op)

This commit is contained in:
Phil Nash 2015-03-04 07:08:53 +00:00
parent 7f5615272b
commit 5eb7748a55
7 changed files with 9 additions and 5 deletions

View file

@ -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__