On Fri, Jan 15, 2010 at 10:04 PM, Aaron Birenboim <aaron at boim.com> wrote:
> To be safe, I might just switch over to overloading this function.
> I'm pretty sure every compiler will like:
> - -------------------------------------------------------
> void thsvg(char * fname, int, legenddata ldata);
> inline void thsvg(char * fname, int i)
> {
> Â legenddata ldata;
> Â thsvg(fname,i,ldata);
> }
> - ----------------------------------------------------- Â in thsvg.hHi, the default parameter value is actually not necessary (it is a remnant of some weird testing, I guess -- this function is never called with 2 parameters), so simple void thsvg(const char * fname, int, legenddata ldata); is enough for header (similarly for cxx implementation). Will be fixed in the sources. Martin
