Skip to content

Commit 6f11a5f

Browse files
Vipul-Cariappaaaronj0
authored andcommitted
fix: handle std::byte as a special case
1 parent 6e1ceb1 commit 6f11a5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ Cppyy::TCppType_t Cppyy::ResolveType(TCppType_t type) {
448448
Cppyy::TCppType_t canonType = Cpp::GetCanonicalType(type);
449449

450450
if (Cpp::IsEnumType(canonType)) {
451-
return Cpp::GetIntegerTypeFromEnumType(canonType);
451+
if (Cppyy::GetTypeAsString(type) != "std::byte")
452+
return Cpp::GetIntegerTypeFromEnumType(canonType);
452453
}
453454

454455
return canonType;

0 commit comments

Comments
 (0)