diff --git a/src/wc_regex_traits.cpp b/src/wc_regex_traits.cpp index 2b3764e3..454b0032 100644 --- a/src/wc_regex_traits.cpp +++ b/src/wc_regex_traits.cpp @@ -178,7 +178,7 @@ c_regex_traits::string_type BOOST_REGEX_CALL c_regex_traits::l std::string name(p1, p2); #else std::string name; - const charT* p0 = p1; + const wchar_t* p0 = p1; while(p0 != p2) name.append(1, char(*p0++)); #endif @@ -196,7 +196,7 @@ c_regex_traits::string_type BOOST_REGEX_CALL c_regex_traits::l iter b = name.begin(); iter e = name.end(); while(b != e) - result.append(1, charT(*b++)); + result.append(1, wchar_t(*b++)); return result; } #endif