Hello everyone,are in such headers have to use "(void)" because "()" has a different meaning in C. But surely this does not apply for class functions. After all if the function is in a class than it cannot be C so there cannot be any issue with "()" meaning "an
I was wondering why ACE uses "(void)" in class functions that take no arguments. I must admit that in the very early days of C++ I did this myself. My reasons where to do with header files that were shared between C and C++. Functions whose prototypes
Regards,
Andrew Marlow
http://www.andrewpetermarlow.co.uk
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 63:04:30 |
Calls: | 6,488 |
Calls today: | 1 |
Files: | 12,096 |
Messages: | 5,274,660 |