Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
FHSS timer: Use singleton pointer #9579
Yes, it's fine to enclose a SingletonPtr as a member of any other static object.
That would only be useful if that static object then becomes a simple object - ie it has no explicit constructor, and its default constructor now has nothing to do because none of its members have explicit constructors - all its complex C++ members are SingletonPtr-wrapped.
It prevents the static objects always being included in a build. Without the
If you have any top-level static C++ objects with constructors, wrapping them in
Tests should have flagged a blinky size increase when those objects were first added.