From 82814f916a6496ea8bbd9a15997e06b95ae1cb50 Mon Sep 17 00:00:00 2001 From: Pavel Siska Date: Tue, 4 Nov 2025 15:22:38 +0100 Subject: [PATCH] unirec++: skip type check for std::byte fields in UnirecRecord Avoid calling getExpectedUnirecType for std::byte fields in checkDataTypeCompatibility(), since byte buffers are handled as raw data and don't have a defined Unirec type mapping. --- unirec/include/unirec++/unirecRecord.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unirec/include/unirec++/unirecRecord.hpp b/unirec/include/unirec++/unirecRecord.hpp index 857e89d9..1f7362f0 100644 --- a/unirec/include/unirec++/unirecRecord.hpp +++ b/unirec/include/unirec++/unirecRecord.hpp @@ -339,7 +339,9 @@ class UnirecRecord { if (ur_is_array(fieldID)) { expectedType = getExpectedUnirecType(); } else { - expectedType = getExpectedUnirecType(); + if constexpr (!std::is_same_v) { + expectedType = getExpectedUnirecType(); + } } if (expectedType != ur_get_type(fieldID)) {