In our application we had a handful of (member, but that shouldn't matter) functions declared as
void SomeFunction(Type argument) throw (...);
With Microsoft Visual C++ that compiles just fine. But now I am trying to compile it with GCC and it rejects the ...
as syntax error. I remember hearing about this construct long ago, but looking at the specification neither C++03 nor C++11 seems to allow ...
there and I can't remember where I got it from. Does anybody know anything about origin of this (clearly pointless) construct?
From the article at http://msdn.microsoft.com/en-us/library/wfa0edys(v=vs.80).aspx:
"Visual C++ departs from the ANSI Standard in its implementation of exception specifications."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With