Replies: 1 comment
-
Sounds like pretty rare case. Currently your approach looks like only possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a nicer way to create a reference to a cached struct inside another struct?
Current workaround:
Ideally, this would be nice:
The semantics of
@CachedReference big: Big
would be:shared_ptr<Big> big
field inThing
big
will always yield the same cached object.Beta Was this translation helpful? Give feedback.
All reactions