[Interest] Strange undeletable QTemporaryFile. Is it a bug?

Guido Seifert wargand at gmx.de
Sat Aug 24 20:46:31 CEST 2013




> > #define private public
> > #include "Foo.h"
> 
> Doesn't work with MSVC, since the protection level is encoded in the member 
> function's name.

This is interesting. How can this not work? This #define trick is a preprocessor thing. The compiler never sees a 'private' So how can it know that a function is in 'reality' private and encode it in the name?

Guido 



More information about the Interest mailing list