Skip to content

Commit bf8374e

Browse files
fix Cppyy::ResolveType to return non-restrict qualified type (#162)
1 parent 639fdc4 commit bf8374e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,9 @@ Cppyy::TCppType_t Cppyy::ResolveType(TCppType_t type) {
492492
if (Cppyy::GetTypeAsString(type) != "std::byte")
493493
return Cpp::GetIntegerTypeFromEnumType(canonType);
494494
}
495+
if (Cpp::HasTypeQualifier(canonType, Cpp::QualKind::Restrict)) {
496+
return Cpp::RemoveTypeQualifier(canonType, Cpp::QualKind::Restrict);
497+
}
495498

496499
return canonType;
497500
}

0 commit comments

Comments
 (0)