]> git.ipfire.org Git - thirdparty/lldpd.git/commit
fix: Error category handling
authorBreuninger Matthias (ETAS-ICA/XPC-Fe3) <matthias.breuninger@etas.com>
Tue, 5 Aug 2025 14:38:16 +0000 (16:38 +0200)
committerBreuninger Matthias (ETAS-ICA/XPC-Fe3) <matthias.breuninger@etas.com>
Tue, 5 Aug 2025 14:38:16 +0000 (16:38 +0200)
commit0d627a70c47a8d0cd75839885dd3407384c1fec0
treefebfb60caba3a820cde3422ba218b463c5990d3c
parent9034c9332cca0c8b1a20e1287f0e5fed81f7eb2a
fix: Error category handling

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.
src/lib/lldpctl.hpp