bad_cast exception unsupported in MSVS 2005sp1
Brought to you by:
complement
When compiling a proprietary .DLL file that includes a proprietary static library, I got an error that stated that bad_cast exception is not a member of stlp_std. Both the static library and the .DLL include the STLPort headers and are linked against stlportd_static.5.1.lib version 5.1.5 .
It should be handled fine by Visual Studio's headers but I don't know where to modify STLPort to get it to work.
The context of the error was in an exception handler that replaces all of the standard exceptions with internal ones.
The unit tests for stlportd_static.lib show 395 tests ok, 1 ignored.
this should compile
I've discovered the cause: two exceptions in then std namespace are defined using macros. Since the STD namespace is redirected using a macro by STLport in the first place, the macros must have been defined incorrectly.