PDA

View Full Version : Use of "..." in C/C++



uljanow
February 14th, 2008, 08:24 PM
hi,
I was wondering where I could find more information about "..." and how it could be used in C/C++ without going through the standards. Variable argument lists are the obvious use. But it did surprised me that following statements are allowed (tested with c99/c++98 flags):


try {
} catch (...) {
}

switch (5) {
case 0 ... 9:
;
}

Martin Witte
February 14th, 2008, 08:30 PM
more on exception handling is here: http://www.parashift.com/c++-faq-lite/exceptions.html