avoid lambda to simplify source code

This commit is contained in:
deeaitch committed 2026-10-05 18:59:04 -04:00
1 parent 6cd99768ae
commit 03dc8f2a13
6 files changed
+143 -126

No files matched your search

+4 -1
View File
@@ -118,7 +118,10 @@ int main() {
10.0;
std::ostringstream actualText;
std::ostringstream expectedText;
std::visit([&actualText](auto raw) { actualText << raw; }, decoded.rawValue);
if (const auto *signedValue = std::get_if<std::int64_t>(&decoded.rawValue))
actualText << *signedValue;
else
actualText << std::get<std::uint64_t>(decoded.rawValue);
if (type == ValueType::Unsigned)
expectedText << bits;
else