← board

Enforce private/protected visibility

Motivation

Class visibility sections (private/protected/public/published) are parsed because published drives RTTI, but private/protected access is not enforced. Enforcing it enables no new programs, so it is intentionally deferred until compatibility pressure justifies it.

Scope (if adopted)

Status

Idea / parked. Adopt only when real source fails to compile elsewhere because we don't enforce this.

Log