mirror of
https://github.com/boostorg/regex.git
synced 2025-07-05 16:46:31 +02:00
Added support for compilers with no exception handling support.
[SVN r12758]
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user