cpp-common/bt2: add static_assert in `CommonClockClass::uuid(const std::uint8_t *)`
[babeltrace.git] / src / cpp-common / bt2 / clock-class.hpp
index ad033b0e5587b71fa72e8d1f235362f987ae011b..5b80890d2e7deaf936bf64872afa35f54e04cbf8 100644 (file)
@@ -215,6 +215,8 @@ public:
 
     CommonClockClass uuid(const bt2c::UuidView uuid) const noexcept
     {
+        static_assert(!std::is_const<LibObjT>::value, "Not available with `bt2::ConstClockClass`.");
+
         bt_clock_class_set_uuid(this->libObjPtr(), uuid.data());
         return *this;
     }
This page took 0.024412 seconds and 4 git commands to generate.