etl
efb9c04a - Fix constexpr accepts() implementation to be C++11 compliant (#451)

Commit
2 years ago
Fix constexpr accepts() implementation to be C++11 compliant (#451) In C++11, `constexpr` functions must not contain compound statements. This change makes the implementation of `message_packet::accepts` use a single conjunction instead of a `switch` statement. See https://gcc.godbolt.org/z/zKbsx3nY5.
Author
mhx mhx
Parents
Loading