Hacker News new | ask | show | jobs
by quotemstr 502 days ago
> excepting weird hacks like evaluating `print c.begin()` and catching it output)

Why do you consider that a weird hack instead of legitimate programming technique?

1 comments

If this is not weird hack, why gdb provide api for getting C++ variables values instead of using this "legitimate programming technique"?