79749921

Date: 2025-08-29 07:05:26
Score: 4.5
Natty:
Report link

Thanks to @Learn N Spread, that was the point, just it needs a bit of further work (see comment), this is the correct way to solve the issue:

ptrLikeStuff = cppyy.ll.reinterpret_cast['Parser_Conf *'](cppyy.addressof(extract))
print("=> Type of the 'ptrLikeStuff' global:", type(ptrLikeStuff).__name__)
cppyy.gbl.print_conf_fromPtr(ptrLikeStuff)

I tried to edit your answer but moderators say it does not make sense, so I am posting a new answer.

Best regards,

Lorenzo

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Contains signature (1):
  • Has code block (-0.5):
  • User mentioned (1): @Learn
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lorenzo