summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/tproc/rope.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ocl/tproc/rope.hpp')
-rw-r--r--include/ocl/tproc/rope.hpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/include/ocl/tproc/rope.hpp b/include/ocl/tproc/rope.hpp
index 05e5399..fba755a 100644
--- a/include/ocl/tproc/rope.hpp
+++ b/include/ocl/tproc/rope.hpp
@@ -194,14 +194,28 @@ namespace ocl::tproc
} // namespace ocl::tproc
-inline std::ostream & operator<<(std::ostream& os, ocl::tproc::crope& r){
- os << r.data();
- return os;
+inline std::ostream& operator<<(std::ostream& os, ocl::tproc::crope& r)
+{
+ os << r.data();
+ return os;
+}
+
+inline std::wostream& operator<<(std::wostream& os, ocl::tproc::wrope& r)
+{
+ os << r.data();
+ return os;
}
-inline std::wostream & operator<<(std::wostream& os, ocl::tproc::wrope& r){
- os << r.data();
- return os;
+inline std::ostream& operator<<(std::ostream& os, const ocl::tproc::crope& r)
+{
+ os << r.c_str();
+ return os;
+}
+
+inline std::wostream& operator<<(std::wostream& os, const ocl::tproc::wrope& r)
+{
+ os << r.c_str();
+ return os;
}
#include "rope.inl"