Thread: throw

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    13
    Rep Power
    0

    throw


    Hi,
    I get a warning each time I add a throw-clause to my functions. The warning looks like this:

    Code:
    warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
    I realize I could just ignore it, but since I use throw-catch pretty often, it becomes disturbing. How can I remove this warning? I'm using VS.NET.

    Thanks in advance,
    Nille
  2. #2
  3. Big Endian
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    May 2001
    Location
    Fly-over country
    Posts
    1,172
    Rep Power
    30

    Re: throw


    Originally posted by Nille
    How can I remove this warning?
    Is your Warning Level set to 4? Does changing it to a lower level make the warning go away?

    http://msdn.microsoft.com/library/de...ep08272002.asp
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    13
    Rep Power
    0
    There we have it! Thanks!

IMN logo majestic logo threadwatch logo seochat tools logo