RE: (off-topic) RE: [Doxygen-users] Documenting IDL
Brought to you by:
dimitri
From: Wagner, V. <VW...@se...> - 2001-05-08 14:15:52
|
I didn't say operator int(), I said operator void* (). There is a large difference. the problem of 'adding' your own test is that it isn't the same as: real pointers STL iterators -----Original Message----- From: Stephen Goudge [mailto:ste...@pi...] Sent: Tuesday, 2001 May 08 09:31 To: dox...@li... Subject: (off-topic) RE: [Doxygen-users] Documenting IDL [deleted] Ah, the number of problems trying to do that caused me :-( I did originally have an operator int() that could be used in if-statements, which worked fine using VC++2 through to VC++4; then a client bought VC++5 and it became ambiguous (I forget the precise reason why), so everything switched to IsValid() from then on. I would be tempted nowadays to try and hid IsValid(), but I take the attitude that if something was done because one compiler needed it (and the results are still legal) then keep it in, because the code will be used on a.n.other compiler next week, or the week after... Even with a decent compiler, there is the vexed question of what the cast operator should be casting _to_ - you don't really want to return another pointer type, as that looks too much like you're providing a backdoor. These days, 'bool' would be a reasonable choice (now that the compilers actually support 'bool'). The best choice would be the mythical 'logical' type that 'if', 'while' etc use, but that isn't available :-( Stephen Goudge _______________________________________________ Doxygen-users mailing list Dox...@li... http://lists.sourceforge.net/lists/listinfo/doxygen-users This transmission may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you |