Re: char_traits bug

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: tom_usenet (tom_usenet_at_hotmail.com)
Date: 02/19/04


Date: Thu, 19 Feb 2004 10:41:40 +0000

On Mon, 16 Feb 2004 15:29:21 -0500, Jason Winnebeck
<gillius@mail.rit.nspam.edu> wrote:

>As for the char_traits bug, it is bothersome, but I have to deal with it
>anyway as the code is in a library distributed as source code, and when
>using that preprocessor test it works fine.

This simple workaround seems to fix the problem:

#include <streambuf>

class goutbuf : public std::streambuf {
protected:
    int_type overflow(int_type meta =
std::streambuf::traits_type::eof());
};

Tom

C++ FAQ: http://www.parashift.com/c++-faq-lite/
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html



Relevant Pages

  • [PATCH 37/62] Blackfin: add note about anomaly 05000242 being worked around
    ... Document anomaly 05000242 workaround in source code. ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: Why does this code not work?
    ... it's because people on this newsgroup like Javascript that people who learn it should ask here. ... how can I have stolen something when the fact is that browsers lack the ability to hide or protect source code? ... expecting others to solve your problem quickly, in their free time, ... Notes referred to by the FAQ which you should have ...
    (comp.lang.javascript)
  • Re: Game of Life
    ... of the source code existing in many different languages ... Game Of Life Source C ... C++ Faq: http://www.parashift.com/c++-faq-lite ...
    (comp.lang.c)
  • Re: Where to find a specific Componenets clientPropertys?
    ... Thanks for the information Thomas and John, and for the link to the ... So one has to search in the source code (currently downloading. ...
    (comp.lang.java.gui)
  • Re: is there any powerful program that can.......
    ... >>I'd like to ask if there is any program that can give me the source file ... I don't think the mad cow analogy fits here. ... The cow analogy refers to the original source code, ... C++ Faq: http://www.parashift.com/c++-faq-lite ...
    (alt.comp.lang.learn.c-cpp)