common: replace container_of with a C++ safe implementation
[lttng-tools.git] / src / common / event-rule / event-rule.cpp
index 8c1b81dbd3ee77e1594a3663da4007ccb72f9ca3..5139eed5a6dbc44daac914f703fc8ca127c1790c 100644 (file)
@@ -65,7 +65,7 @@ enum lttng_domain_type lttng_event_rule_get_domain_type(
 static void lttng_event_rule_release(struct urcu_ref *ref)
 {
        struct lttng_event_rule *event_rule =
-                       container_of(ref, typeof(*event_rule), ref);
+                       lttng::utils::container_of(ref, &lttng_event_rule::ref);
 
        LTTNG_ASSERT(event_rule->destroy);
        event_rule->destroy(event_rule);
This page took 0.023203 seconds and 4 git commands to generate.