Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions platform/SingletonPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@ struct SingletonPtr {
return get();
}

/** Get a reference to the underlying singleton
*
* @returns
* A reference to the singleton
*/
T &operator*()
{
return *get();
}

// This is zero initialized when in global scope
T *_ptr;
// Force data to be 4 byte aligned
Expand Down