common: replace container_of with a C++ safe implementation
[lttng-tools.git] / src / common / conditions / condition.cpp
index 525932eb2f06d43dcbf183e2239a8a7ed7dbe641..1efab164d8c39610b509c32a1e898cf041836623 100644 (file)
@@ -32,7 +32,7 @@ void lttng_condition_destroy(struct lttng_condition *condition)
 static void condition_destroy_ref(struct urcu_ref *ref)
 {
        struct lttng_condition *condition =
-               container_of(ref, struct lttng_condition, ref);
+               lttng::utils::container_of(ref, &lttng_condition::ref);
 
        condition->destroy(condition);
 }
This page took 0.022984 seconds and 4 git commands to generate.