Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rbu9fe
Copy link
Contributor

@rbu9fe rbu9fe commented Aug 5, 2025

A std::error_code stores the error category only by reference, hence, we must use an object in static storage.

This PR creates a static error category object and provides lldpcli::make_error_code for convenience, similar to std::make_error_code.

rbu9fe added 3 commits August 5, 2025 16:38
A std::error_code stores the error category only by reference, hence, we must use an object in static storage.
Add lldpcli::make_error_code for convenience similar to std::make_error_code.
Directly pass error code to std::system_error.
@vincentbernat vincentbernat merged commit 494ca85 into lldpd:master Aug 9, 2025
20 checks passed
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