Thanks for your quick response!
So you mean (int)puffer.r -> int(puffer.r)? I tried that, but it did not helped.
Anyway, the given error is:
error: ambiguous overload for ‘operator>>’ in ‘keptxt >> puffer.TDATA::r’|
(at line that starts with "keptxt >>...")