Closed sbalogh closed 7 years ago
Can you please give me the registration code, i.e. a test case?
Test case code is attached.
This is the output I get with the latest version:
Name:myshape
Name:circleyour
Name:mypoint2d
Name:mycolor
Seems good to me. Or am I missing something?
It is interesting. I get with the git master:
Name:mymyshape
Name:circleyouryour
Name:mymypoint2d
Name:mymycolor
I think this is the "right" behavior, because without the patch in the type_register_private::register_custom_name
function the type_data.name firstly is assigned to a new custom name for the given type t
(line1). After that in the for loop old raw names are replaced with new custom name for all type including for the given type t
with an already updated type_data.name (line2).
what compiler do you use?
I'm using g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 on Ubuntu 16.04. I was surprised your output.
The patch below solves the problem for me.
type_register.diff.zip