This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unifying the GCC Debugging Interface
On Tue, Nov 20, 2012 at 2:34 PM, Xinliang David Li <davidxl@google.com> wrote:
> class bitmap {
> public:
> void print_me (print_flags flags = print_pretty, FILE *stream = stderr);
> ...
> };
This is fine and all, but most of our objects are pointers and many
times we are dealing with NULL pointers. With free functions, we
don't have this issue.
I'm not opposed to having them be member functions. It's just that
the free functions will still be needed.
Diego.