On Friday 18 January 2002 2:18 pm, Jean-Marc Lasgouttes wrote:
> >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> Angus> On Friday 18 January 2002 10:55 am, Jean-Marc Lasgouttes wrote:
> >> Try to take a look at LaTeXFeatures::getTClassPreamble(). It uses a
> >> vector of bool (which should be safe) and stringstreams. I seem to
> >> remember I have seen cases where cxx stringstream did not behave as
> >> gnu version, but this is very hazy for me.
> 
> Angus> The patch, attached, gets everything working. Are you happy to
> Angus> let this one into the source?
> 
> It sure looks weird :) What is the exact solution? That you have to
> send a const char * before any lyxstring on a given line?
> 
> Could it be that the ostream << lyxstring operator is broken?

That's ostringstream and std::string of course.

I have no idea what's going wrong. This little program works fine!
A

#include <iostream>
#include <sstream>

int main() 
{
        std::ostringstream os;
        os << std::string("Angus\nAngus\nAngus\n");
        std::cerr << os.str().c_str() << std::endl;
        
        return 0;
}

Reply via email to