Changed static assert to indicate impossible usage
This commit is contained in:
1 parent
2a2b9b8817
commit
cb436b11a8
1 file changed
+6
-6
@@ -237,19 +237,19 @@ class Uart {
|
||||
template <typename... Ts>
|
||||
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>
|
||||
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>
|
||||
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)
|
||||
@@ -331,19 +331,19 @@ class Uart {
|
||||
template <typename... Ts>
|
||||
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>
|
||||
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>
|
||||
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>
|
||||
|
||||
Reference in new issue
Block a user