Skip to content

Use improved obj ptr api - #538

Open
BartolomeyKant wants to merge 2 commits into
mainfrom
use_improved_obj_ptr_api
Open

Use improved obj ptr api#538
BartolomeyKant wants to merge 2 commits into
mainfrom
use_improved_obj_ptr_api

Conversation

@BartolomeyKant

Copy link
Copy Markdown
Collaborator

Refactored ObjPtr to use a type-erased cache owned by ObjectPtrBase, enabling strongly typed persistent references with incomplete types and PIMPL-friendly headers.

Added ProxyPtr to avoid expensive temporary Ptr copies during normal access, while preserving owning conversions when needed. Centralized serialization, loading, visitor handling, and cache ownership in ObjectPtrBase, migrated typed persistent references, removed obsolete casts, and added coverage for ownership, moves, forward declarations, visitors, and serialization.

This also reduced footprint a little.

@BartolomeyKant BartolomeyKant self-assigned this Aug 21, 2026
@BartolomeyKant BartolomeyKant linked an issue Aug 21, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move aboject system to aether-objects

2 participants