Skip to content

Rule: Factory ownership convention changed

Canonical rule slug: factory-ownership-convention-changed. ← back to all rules

A function returning a raw pointer keeps its declaration, but who owns the pointee changes (caller-owned new object versus library-owned shared object).

Canonical demonstration