Added << ostream overload to StringRef

This commit is contained in:
Phil Nash 2017-08-14 08:50:44 +01:00
parent bb8c1fb17f
commit fa3535e95e
5 changed files with 54 additions and 92 deletions

View file

@ -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();
}