Late initiation
#1341
Replies: 1 comment
-
I don't know anything off the top of my head that would for sure be unsafe... but I wouldn't rely on it being safe either. |
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
-
I keep wondering if this is safe:
then later on, after passing a pointer to the connection struct around, but before any usage, initialize it with
this obviously leads to a temporary "copy" of the pool, which feels somewhat unsafe given its internal complexity. But as long as
c.p
has not been used, is it safe?Beta Was this translation helpful? Give feedback.
All reactions