Boost C++ Libraries: Ticket #873: Regex for UChar or short on linux-x64 https://svn.boost.org/trac10/ticket/873 <pre class="wiki">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 &lt;boost/regex/v4/regex.hpp&gt; typedef unsigned short UChar; // UChar from ICU typedef boost::basic_regex&lt;UChar&gt; 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. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/873 Trac 1.4.3 John Maddock Wed, 28 Mar 2007 16:41:56 GMT status changed https://svn.boost.org/trac10/ticket/873#comment:1 https://svn.boost.org/trac10/ticket/873#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=14804 Originator: NO Please refer to the documentation here: http://www.boost.org/libs/regex/doc/icu_strings.html and follow the instructions for working with ICU data types. </pre> Ticket towi Thu, 29 Mar 2007 07:45:44 GMT <link>https://svn.boost.org/trac10/ticket/873#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/873#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=269193 Originator: YES Thanks a lot! Works. Sorry I missed that. </pre> </description> <category>Ticket</category> </item> </channel> </rss>