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

Thiago Macieira thiago.macieira at intel.com
Sat Aug 24 21:24:53 CEST 2013

On sábado, 24 de agosto de 2013 20:46:31, Guido Seifert wrote:
> > > #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?

You've exactly described the problem.

If it won't encode the "private" in the name, how will it find the function in 
the library?

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130824/f4cb8eb2/attachment.sig>

More information about the Interest mailing list