Skip to content

Commit c0d3ef4

Browse files
authored
Merge pull request #241 from CESNET/fix-unirec++-skip-byte-type-check
unirec++: skip type check for std::byte fields in UnirecRecord
2 parents 36917b1 + 82814f9 commit c0d3ef4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unirec/include/unirec++/unirecRecord.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ class UnirecRecord {
339339
if (ur_is_array(fieldID)) {
340340
expectedType = getExpectedUnirecType<RequiredType*>();
341341
} else {
342-
expectedType = getExpectedUnirecType<RequiredType>();
342+
if constexpr (!std::is_same_v<RequiredType, std::byte>) {
343+
expectedType = getExpectedUnirecType<RequiredType>();
344+
}
343345
}
344346

345347
if (expectedType != ur_get_type(fieldID)) {

0 commit comments

Comments
 (0)