You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently, when the pointer of a constant is taken, the once_init guard loses track of the initialization status causing multiple initializations.
You can see more in this discussion
The text was updated successfully, but these errors were encountered:
Considering the following code:
The outputs is:
Apparently, when the pointer of a constant is taken, the
once_init
guard loses track of the initialization status causing multiple initializations.You can see more in this discussion
The text was updated successfully, but these errors were encountered: