Compare commits

..
1 Commits
Author SHA1 Message Date
BlackMark cb436b11a8 Changed static assert to indicate impossible usage 2020-02-21 17:46:28 +01:00
+6 -6
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>