Skip to content

swss-common LIB update for events publish/subscribe #1

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

Merged
merged 25 commits into from
Jun 2, 2022

Conversation

renukamanavalan
Copy link
Owner

No description provided.

@renukamanavalan renukamanavalan self-assigned this May 31, 2022
*/
template <typename Map>
int
serialize(const Map& data, string &s)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does serialize require address of Map?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a template typename
It could be XYZ too

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to clarify my question, any need for passing by reference here?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reference is same as pointer, but assures that the pointer can't be NULL.
So where we mandatorily expect data, we could use reference and compiler takes care of it.

@renukamanavalan renukamanavalan merged commit c849258 into syslog_telemetry_shared Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants