From: Foster T. B. <fbr...@ad...> - 2005-06-14 21:46:05
|
Hey all, I have a cygwin-gcc-specific issue with the following chunk of code: > std::istream::int_type c_int(stream_m->get()); > char c(0); > > c = std::use_facet<std::ctype<wchar_t> >(std::locale()).narrow(c_int, > '?'); In the cygwin gcc that I have (gcc 3.4.4) I get the following error in the above line of code: > Exception: St8bad_cast Has anyone seen this before? Any ideas of a possible workaround? Anyone know of an easier (yet equally portable) means of narrowing an int_type value from a stream::get()? Blessings, Foster -- Foster T. Brereton <}}}>< Romans 3:21-26 A d o b e S o f t w a r e T e c h n o l o g y L a b "What 99 percent of programmers need to know is not how to build components but how to use them." -- Alexander Stepanov |