mirror of
https://github.com/catchorg/Catch2.git
synced 2025-10-17 15:45:39 +02:00
Added << ostream overload to StringRef
This commit is contained in:
@@ -173,7 +173,7 @@ namespace Catch {
|
||||
return StringRef( lhs ) + rhs;
|
||||
}
|
||||
|
||||
std::ostream& operator << ( std::ostream& os, StringRef const& str ) {
|
||||
auto operator << ( std::ostream& os, StringRef const& str ) -> std::ostream& {
|
||||
return os << str.c_str();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user