Added support for compilers with no exception handling support.

[SVN r12758]
This commit is contained in:
John Maddock
2002-02-08 12:44:43 +00:00
parent a5d1526fbb
commit c8e9df8fa2
12 changed files with 267 additions and 12 deletions

View File

@ -236,11 +236,15 @@ void BOOST_REGEX_CALL w32_traits_base::do_init()
if(*regex_message_catalogue)
{
hresmod = LoadLibraryA(regex_message_catalogue);
#ifndef BOOST_NO_EXCEPTIONS
if(hresmod == NULL)
{
std::string s("Unable to open dll: ");
throw std::runtime_error(s + regex_message_catalogue);
}
#else
BOOST_REGEX_NOEH_ASSERT(hresmod != NULL);
#endif
}
unsigned int i;
for(i = 0; i < REG_E_UNKNOWN; ++i)