<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - regex doesn't allow custom traits::char_class_type"
href="http://llvm.org/bugs/show_bug.cgi?id=18501">18501</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>regex doesn't allow custom traits::char_class_type
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>hhinnant@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cubbimew@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Although the result of __traits_.lookup_classname() is saved in a
char_class_type variable, __bracket_expression assumes that it must be type-
and value-compatible with ctype_base::mask, so it's OR'd into a
ctype_base::mask variable (see __bracket_expression::__add_class()), and the
resulting ctype_base::mask, NOT a char_class_type, is what's passed into
__traits_.isctype().
This makes it impossible to provide regex traits that handle custom character
classes (e.g. locale-specific wctype classifications or Unicode classes a-la
boost or anything else beyond ctype_base::mask's meager selection).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>