Ok, if size is public, but the data is protected, a friend function should access to private part of the class; It was in previous release of gcc, (according to the documentation it should run) why not now , is there another possibilities ? thanks for help bela