2 Feb
2009
2 Feb
'09
8:44 p.m.
Roman Perepelitsa wrote:
Sorry, I don't know how to make it work for functions without arguments. Problem is that this program is invalid: void foo() {} void foo(...) {}
int main() { foo(); // Ambiguous. }
Since the stuff now works with void arguments (as I noted).. only one final issue remains... This does not work with types that cannot be used as base classes (e.g. primitive types, enums) etc. The compiler errors out. -Roshan