throw list in VS 2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dk60

    #1

    throw list in VS 2005

    I am writing an application in C++ in VS 2005. I wrote a function with
    a throw list, but the compiler and the runtime seem to ignore it. tha
    function can still throw an exception that does not appear in the
    throw list, and the handling environment catches it just fine.
    Is it possible that VS does not support throw lists? Is there
    something to be configured in the project so that it does support it?

  • Bo Persson

    #2
    Re: throw list in VS 2005

    dk60 wrote:
    :: I am writing an application in C++ in VS 2005. I wrote a function
    :: with a throw list, but the compiler and the runtime seem to ignore
    :: it. tha function can still throw an exception that does not appear
    :: in the throw list, and the handling environment catches it just
    :: fine.
    :: Is it possible that VS does not support throw lists? Is there
    :: something to be configured in the project so that it does support
    :: it?

    You are correct that exception specifications are not supported by the
    compiler. Nothing we can do about that, except avoid them. :-(


    Bo Persson


    Comment

    • Eberhard Schefold

      #3
      Re: throw list in VS 2005

      dk60 wrote:
      Is it possible that VS does not support throw lists?
      http://msdn2.microsoft.com/en-us/lib...ys(vs.80).aspx

      Comment

      Working...