Hi Christian,
for safety reasons we decided to make the TString(Int_t) ctor explicit. What happened in you code is that a TString(0) was created and returned, which is a string of 0 preallocated length and not 0 converted to a “0” string (as is done with TString s; s+=0;). To avoid any confusion we made this conversion explicit. Now you either have to return:
return TString(0)
or
return “”;
which is the empty string.
Returning 0 is only supported for all functions returning a pointer, not for the ones returning objects (unless they have a non-explicit MyClass(int) ctro).
Cheers, Fons.