Skip to content
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

Delete or private the copy constructors for pcpp::Logger to prevent accidental copies. #1708

Closed
Dimi1010 opened this issue Feb 6, 2025 · 0 comments · Fixed by #1714
Closed

Comments

@Dimi1010
Copy link
Collaborator

Dimi1010 commented Feb 6, 2025

auto logger = pcpp::Logger::getInstance(); //< auto does not deduce references. It should be auto&. An implicit copy is being made here.
logger.suppressLogs();

Originally posted by @Dimi1010 in #1706

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant