Finished [re.traits]. I'd like to acknowledge the help of Bjorn Reese with <regex>.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@106478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2010-06-21 21:01:43 +00:00
parent 80d88f35d2
commit f409d2f2fc
8 changed files with 731 additions and 14 deletions

View File

@@ -14,8 +14,15 @@
// locale_type imbue(locale_type l);
#include <regex>
#include <locale>
#include <cassert>
int main()
{
#error imbue not implemented
{
std::regex_traits<char> t;
std::locale loc = t.imbue(std::locale("en_US"));
assert(loc.name() == "C");
assert(t.getloc().name() == "en_US");
}
}