Apparently, none of gp << "set output";, gp << std::flush;, gp.do_flush() can do proper flushing of output svg file, if it's done without destructing the gp instance. I keep getting an empty output file. I guess, the library does not offer any explicit flushing API. Is there any workaround?
Thanks!