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)) {