mirror of
https://github.com/boostorg/regex.git
synced 2025-07-19 15:22:09 +02:00
Change assert into runtime check - it keeps the VC8 analyser happy.
[SVN r32013]
This commit is contained in:
@ -533,8 +533,9 @@ typename w32_regex_traits_implementation<charT>::char_class_type
|
|||||||
return pos->second;
|
return pos->second;
|
||||||
}
|
}
|
||||||
std::size_t id = 1 + re_detail::get_default_class_id(p1, p2);
|
std::size_t id = 1 + re_detail::get_default_class_id(p1, p2);
|
||||||
BOOST_ASSERT(id < sizeof(masks) / sizeof(masks[0]));
|
if(id < sizeof(masks) / sizeof(masks[0]))
|
||||||
return masks[id];
|
return masks[id];
|
||||||
|
return masks[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user