By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,837 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,837 IT Pros & Developers. It's quick & easy.

exception specifications legal in C++/CLI

P: n/a
I'm trying to comile some managed C++ code in VC++ 2005 beta that has a lot
of exception specifications,ie

int func() throw( SomeException*) ;

I'm getting these messages:

error C2353: exception specification is not allowed.

unfortunately MSDN isn't much help here. Obviously, C++/CLI is not allowing
exception specifications. Is there a flag to ignore the specifications?
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Brian" <bm********@pattersoncm.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm trying to comile some managed C++ code in VC++ 2005 beta that has a
lot
of exception specifications,ie

int func() throw( SomeException*) ;

I'm getting these messages:

error C2353: exception specification is not allowed.

unfortunately MSDN isn't much help here. Obviously, C++/CLI is not
allowing
exception specifications. Is there a flag to ignore the specifications?


Yeah, the error message is new so it doesn't appear in the "released"
version of the MSDN library. But at this link

http://msdn2.microsoft.com/library/7...us,vs.80).aspx

<quote>
Compiler Error C2353
exception specification is not allowed

Exception specifications are not allowed on member functions of managed
classes.

The following sample generates C2353:
</quote>

With no mention of override, I would _assume_ that it is an example of "you
can't get there from here".

Regards,
Will

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.