diff --git a/include/rexy/string_base.hpp b/include/rexy/string_base.hpp index de514f3..b2bfbe3 100644 --- a/include/rexy/string_base.hpp +++ b/include/rexy/string_base.hpp @@ -25,6 +25,7 @@ #include //strlen #include //CHAR_BIT #include //reverse_iterator +#include //ostream #include "steal.hpp" #include "utility.hpp" @@ -496,6 +497,15 @@ namespace{ return rexy::string_view(str, len); } + template + std::ostream& operator<<(std::ostream& os, const rexy::basic_string& str){ + return os << str.c_str(); + } + template + std::ostream& operator<<(std::ostream& os, const rexy::string_view& str){ + return os << str.c_str(); + } + } #ifdef REXY_BINARY_BASE_HPP