From ad9c0407996d9b273e7c538cbb764d3d85538067 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Mon, 21 Aug 2023 16:30:17 +0100 Subject: [PATCH] console: Added several missing default constructors and opertors for asHex_t --- substrate/console | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/substrate/console b/substrate/console index 9c9867fe..72173d32 100644 --- a/substrate/console +++ b/substrate/console @@ -262,8 +262,13 @@ namespace substrate constexpr asHex_t(const T value) noexcept : maxDigits{sizeof(T) * 2}, msbShift{uint8_t(4U * (maxDigits - 1U))}, _value(value) { } - SUBSTRATE_NOINLINE - void operator ()(const consoleStream_t &stream) const noexcept final + constexpr asHex_t(const asHex_t &) noexcept = default; + constexpr asHex_t(asHex_t &&) noexcept = default; + ~asHex_t() noexcept = default; + constexpr asHex_t &operator =(const asHex_t &) noexcept = default; + constexpr asHex_t &operator =(asHex_t &&) noexcept = default; + + SUBSTRATE_NOINLINE void operator ()(const consoleStream_t &stream) const noexcept final { uintmax_t value{_value}; // If we've been asked to pad by more than the maximum possible length of the number