[Qt-interest] [OT] RE: QWizardPage::wizard() overprotected?

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Fri Dec 12 12:30:29 CET 2008


Knoll Oliver, ITS-CMT-SUI-RM-IFB wrote on Friday, December 12, 2008 12:04 PM:

>>> ...
>>> #define private public
> ...
> I can confirm that this still works with Visual Studio 2005 (Express)
> without any warning (maybe there's this switch somewhere with which
> you could stop such nonsense). Maybe Microsoft has changed that in VS
> 2008. I didn't know that the "C++ standard" woudl actually forbid
> this, because it would never come to my mind to do such things.

Just out of curiosity I came up with the following result (which basically confirms what we have seen so far) when googling with "#define private public" (and it really seems that there are indeed people out there using that construct - ouch ;):

  http://everything2.com/index.pl?node_id=855268

By the way, the C++ guru from which I have this "dirty trick" is indeed "Repräsentant der Schweiz bei der ISO für die Standardisierung von C++" (representative of Switzerland for the ISO for the C++ standardisation) ;)

Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22




More information about the Qt-interest-old mailing list