-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport of NotificationBucket
#4550
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few suggestions; otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a typo and have a question. LGTM
*/ | ||
inline static TokensMap& get_tokens() | ||
{ | ||
static TokensMap s_tokens; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[question] I just am curious what s_
indicates? (Probably something about it being static). I would also like to know how this does get initialised. Does static in this case behave a bit like a singleton?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably something about it being static.
Right. I personally don't like this convention, but I believe it got introduced in the previous implementation because other pieces of the code adhered to it.
I would also like to know how this does get initialised.
This is the initialisation - this syntax calls the default constructor with no arguments.
Co-authored-by: FFranck <[email protected]> Co-authored-by: Andrew Meyer <[email protected]>
What, How & Why?
This is a backport of #4228 onto
master
, in an attempt to ease the rebase ofv11
once #4522 is merged tomaster
and released.☑️ ToDos
Compatibility
label is updated or copied from previous entryBreaking
label has been applied or is not necessary