>
>
> > Ah ok, I got it. Yes, std::vector usage is definitely better choice.
>
> No, it's not. Why to add an overhead of the std::vector class on
> something what is a string, a plain character array? Just add
> podofo_free() on appropriate places and fix the other things and that's
> it.
>

Actually it would not be overhead. It would compile probably to almost
exactly same binary code as when using malloc and free. With advantage of
fewer possibility of mistakes. At least using unique_ptr/auto_ptr would be
better than manual free. RAII is better.
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to