kyleliu / mili

Automatically exported from code.google.com/p/mili
Boost Software License 1.0
0 stars 0 forks source link

Remove throw specifiers list (was Warning C4290 in VS) #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Visual Studio 2010 throws this warning for a lot of mili files:

1>h:\projects\mili\mili\string_utils.h(328): warning C4290: C++ exception 
specification ignored except to indicate a function is not __declspec(nothrow)

Suggestions:
1) define a macro that will expand normally for other compilers different than 
VS
2) disable  the warning

Original issue reported on code.google.com by esteban....@gmail.com on 7 Jan 2012 at 10:01

GoogleCodeExporter commented 9 years ago
throw specifier is now discouraged and will be obsolete in C++0x.

I suggest to use this issue to remove the throw specifier list everywhere from 
mili, except the empty list.

Original comment by daniel.g...@fudepan.org.ar on 9 Jan 2012 at 3:33