id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 873,Regex for UChar or short on linux-x64,towi,John Maddock,"{{{ On my Linux-x64 machine, where sizeof(wchar_t) is 4 I want to use regex for ICU UnicodeStrings. Or, in fact on zero-terminated UChar* buffers. But the following code crashes with a ""bad_cast"" exception: ----------------------------------- #include typedef unsigned short UChar; // UChar from ICU typedef boost::basic_regex uregex; int main() { UChar ubuf[] = { 'a', 'b', 'c', 0}; uregex re; re.assign(ubuf); } --------------------------------------- boost version is 1.35. g++ is 4.1.2. tschau, towi. }}}",Bugs,closed,,regex,None,,Invalid,,