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

@ -9,6 +9,7 @@
#include <cstddef>
#include <string>
#include <iosfwd>
namespace Catch {
@ -76,7 +77,9 @@ namespace Catch {
auto operator + ( StringRef const& lhs, StringRef const& rhs ) -> String;
auto operator + ( StringRef const& lhs, char const* rhs ) -> String;
auto operator + ( char const* lhs, StringRef const& rhs ) -> String;
auto operator << ( std::ostream& os, StringRef const& sr ) -> std::ostream&;
} // namespace Catch
#endif // CATCH_STRINGREF_H_INCLUDED