diff --git a/src/avclan/bus.hpp b/src/avclan/bus.hpp index 66e51ff..2043f99 100644 --- a/src/avclan/bus.hpp +++ b/src/avclan/bus.hpp @@ -94,9 +94,9 @@ public: bool sendstartbit(); Error::Read readstartbit(); - template - requires(sizeof(T) < 3 && N < 16) && - requires { std::is_base_of_v; } + template Trailer> + requires(sizeof(T) < 3 && N < 16 && !std::same_as) Error::Send send(T bits, Trailer /*tag*/) { const auto parity = sendbits(bits); @@ -117,9 +117,9 @@ public: return Send{0}; }; - template - requires(sizeof(T) < 3 && N < 16) && - requires { std::is_base_of_v; } + template Trailer> + requires(sizeof(T) < 3 && N < 16 && !std::same_as) Error::Read read(T *bits, Trailer /*tag*/) { const auto calc_parity = readbits(bits); if constexpr (std::is_same_v) {