typeinfo and exceptions

2005-03-07 Thread Tim Janik
hi all. i really fail to see what i'm doing wrong in the following code: struct Exception : std::exception { Exception (const char *format, ...) __attribute__((__format__ (__printf__, 2, 3))); [...] }; struct Obj { Obj () { throw Exception ("%s: error", typeid (this).name()); } }; try { Obj

aren't specialized templates templates?

2005-02-12 Thread Tim Janik
hi all. the code snippet below is extracted from a much more complicated piece of code. basically the problem is that g++ (3.3 and 3.4) demand different typedef syntax inside template bodies, depending on whether full or partial specialization is used. is this really the correct behaviour and stand