Skip to content

Commit 7cb3bed

Browse files
committed
[CPyCppyy] Also replace * in cppscope_to_legalname
1 parent e0ffd20 commit 7cb3bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/pyroot/cppyy/CPyCppyy/src/TypeManip.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void CPyCppyy::TypeManip::cppscope_to_legalname(std::string& cppscope)
190190
{
191191
// Change characters illegal in a variable name into '_' to form a legal name.
192192
for (char& c : cppscope) {
193-
for (char needle : {':', '>', '<', ' ', ',', '&', '='})
193+
for (char needle : {':', '>', '<', ' ', ',', '&', '=', '*'})
194194
if (c == needle) c = '_';
195195
}
196196
}

0 commit comments

Comments
 (0)