cpp-common/bt2c: use `ComparableWithCStringView` on `operator!=` meant for `CStringView`
[babeltrace.git] / src / cpp-common / bt2c / c-string-view.hpp
index b1a7b6e76d4037fb2976f1248a1a26d4278d822c..3dca0299da4babf6495d26b88905126feb7104ab 100644 (file)
@@ -240,7 +240,10 @@ bool operator==(LhsT&& lhs, RhsT&& rhs) noexcept
  *
  * Both `lhs` and `rhs` must not have an underlying `nullptr` raw data.
  */
-template <typename LhsT, typename RhsT>
+template <
+    typename LhsT, typename RhsT,
+    typename = typename std::enable_if<internal::ComparableWithCStringView<LhsT>::value>::type,
+    typename = typename std::enable_if<internal::ComparableWithCStringView<RhsT>::value>::type>
 bool operator!=(LhsT&& lhs, RhsT&& rhs) noexcept
 {
     return !(std::forward<LhsT>(lhs) == std::forward<RhsT>(rhs));
This page took 0.023771 seconds and 4 git commands to generate.