All content and materials on this
site are provided "as is". TI and its respective suppliers and providers of content make no representations about
the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these
materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a
particular purpose, title and non-infringement of any third party intellectual property right. No license, either
express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a
license from a third party, or a license from TI.
Due to an implementation detail, the <regex> header will never throw an exception corresponding to std::regex_constants::error_ctype. This can be exhibited from the below code sample:
#include <regex>
int main(void) {
try {
std::regex e("[[:not_a_class:]]", std::regex_constants::ECMAScript);
std::regex_match("a", e);
}
catch(std::regex_error e){
// e.code() will not be std::regex_constants::error_ctype
}
return 0;
}
Due to an implementation detail, the <regex> header will never throw an exception corresponding to std::regex_constants::error_ctype. This can be exhibited from the below code sample:
#include <regex>
int main(void) {
try {
std::regex e("[[:not_a_class:]]", std::regex_constants::ECMAScript);
std::regex_match("a", e);
}
catch(std::regex_error e){
// e.code() will not be std::regex_constants::error_ctype
}
return 0;
}