src.ctf.fs: make set_trace_name use bt2::Trace
[babeltrace.git] / src / cpp-common / bt2c / c-string-view.hpp
index 0437cd65c4d87458ebe8eca1029d74e728201649..771954c1a0f9119365a63af1b18120580b9ae9e6 100644 (file)
@@ -258,4 +258,12 @@ bool operator!=(LhsT&& lhs, RhsT&& rhs) noexcept
 
 } /* namespace bt2c */
 
+/*
+ * Appends `rhs` to `lhs`.
+ */
+inline void operator+=(std::string& lhs, bt2c::CStringView rhs)
+{
+    lhs += rhs.data();
+}
+
 #endif /* BABELTRACE_CPP_COMMON_BT2C_C_STRING_VIEW_HPP */
This page took 0.028303 seconds and 4 git commands to generate.