From cb436b11a8428c2c40a11b51fedb4d2c7d38ece7 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Fri, 21 Feb 2020 17:46:28 +0100 Subject: [PATCH] Changed static assert to indicate impossible usage --- uart.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/uart.hpp b/uart.hpp index fb2f715..ed708be 100644 --- a/uart.hpp +++ b/uart.hpp @@ -237,19 +237,19 @@ class Uart { template Uart &operator<<(float) const { - static_assert(util::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not supported by hardware"); } template Uart &operator<<(double) const { - static_assert(util::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not supported by hardware"); } template Uart &operator<<(long double) const { - static_assert(util::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not supported by hardware"); } Uart &operator<<(const bool &val) @@ -331,19 +331,19 @@ class Uart { template Uart &operator>>(float &) const { - static_assert(util::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not supported by hardware"); } template Uart &operator>>(double &) const { - static_assert(util::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not supported by hardware"); } template Uart &operator>>(long double &) const { - static_assert(util::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not supported by hardware"); } template