Changed static assert to indicate impossible usage

This commit is contained in:
BlackMark 2020-02-21 17:46:28 +01:00
parent 2a2b9b8817
commit cb436b11a8

View File

@ -237,19 +237,19 @@ class Uart {
template <typename... Ts> template <typename... Ts>
Uart &operator<<(float) const Uart &operator<<(float) const
{ {
static_assert(util::always_false_v<Ts...>, "Not implemented"); static_assert(util::always_false_v<Ts...>, "Not supported by hardware");
} }
template <typename... Ts> template <typename... Ts>
Uart &operator<<(double) const Uart &operator<<(double) const
{ {
static_assert(util::always_false_v<Ts...>, "Not implemented"); static_assert(util::always_false_v<Ts...>, "Not supported by hardware");
} }
template <typename... Ts> template <typename... Ts>
Uart &operator<<(long double) const Uart &operator<<(long double) const
{ {
static_assert(util::always_false_v<Ts...>, "Not implemented"); static_assert(util::always_false_v<Ts...>, "Not supported by hardware");
} }
Uart &operator<<(const bool &val) Uart &operator<<(const bool &val)
@ -331,19 +331,19 @@ class Uart {
template <typename... Ts> template <typename... Ts>
Uart &operator>>(float &) const Uart &operator>>(float &) const
{ {
static_assert(util::always_false_v<Ts...>, "Not implemented"); static_assert(util::always_false_v<Ts...>, "Not supported by hardware");
} }
template <typename... Ts> template <typename... Ts>
Uart &operator>>(double &) const Uart &operator>>(double &) const
{ {
static_assert(util::always_false_v<Ts...>, "Not implemented"); static_assert(util::always_false_v<Ts...>, "Not supported by hardware");
} }
template <typename... Ts> template <typename... Ts>
Uart &operator>>(long double &) const Uart &operator>>(long double &) const
{ {
static_assert(util::always_false_v<Ts...>, "Not implemented"); static_assert(util::always_false_v<Ts...>, "Not supported by hardware");
} }
template <typename... Ts> template <typename... Ts>