Re: About namespaces

1999-10-13 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> I am really beggining to hate cxx... Keep cool :) I understand that cxx default behaviour is suboptomal, and if I can make it work with strict_ansi option, I'll be happy... Lars> How do you set the streambuf on a ostream in

Re: About namespaces

1999-10-13 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> streamsize should exist in "not-so-new" implementations of the | Lars> iostreams too. | | My not-so-new version of the STL (when not using strict_ansi) uses | 'int' for that. Ok, then for this specific compiler we could have a typedef for

Re: About namespaces

1999-10-13 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> Lars> ostream & operator<<(ostream &, ); | | OK, so I Lars> included "debug.h" in places which define these operators. It | Lars> would seem more reasonable to me to defi

Re: About namespaces

1999-10-13 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> ostream & operator<<(ostream &, ); | | OK, so I included "debug.h" in places which define these operators. It | would seem more reasonable to me to define a LOStreams.h header (like | LString.h) which sets up ostreams correctly for our own

Re: About namespaces

1999-10-13 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> | Lars> And to whom would the "definitions [be] much cleaner" ? Lars> | | I mean that if everytime we use we need 15 lines Lars> of | error prone preprocessor stuff, the fun factor will tend to Lars> go low. At | first I thoug

Re: About namespaces

1999-10-12 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | For the streams in , we now in DebugStream.h which ones are | needed. So I guess it is all or nothing. s/now/know ? Yes I think you are right. | Lars> And to whom would the "definitions [be] much cleaner" ? | | I mean that if everytime we use

Re: About namespaces

1999-10-12 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> 1) in DebugStream.h, make sure that 'using std::ostream' is used Lars> (and | for other streams types we need too). Lars> Perhaps a Lars> #if NEED_USING_XXX using xxx;

Re: About namespaces

1999-10-12 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | 1) in DebugStream.h, make sure that 'using std::ostream' is used (and |for other streams types we need too). Perhaps a #if NEED_USING_XXX using xxx; #endif construct? | 2) remove all explicit std:: for all stream types in DebugStream.[Ch

Re: About namespaces

1999-10-12 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> 1) add the proper 'using std::ostream' for all the objects like Lars> this | that we use. The particular problem with ostream is that Lars> it is or | is not in std:: dep

Re: About namespaces

1999-10-12 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | 1) add the proper 'using std::ostream' for all the objects like this |that we use. The particular problem with ostream is that it is or |is not in std:: depending on the header we use to declare it... One other problem with ostream (and

About namespaces

1999-10-12 Thread Jean-Marc Lasgouttes
Hello, I am still in the process of compiling LyX with DEC cxx compiler. It seems that adding the cfoo headers from GNU libstdc++ gives good results, but I have problems with namespaces. The problem: stuff like ostream is used sometimes with std::, sometimes without. While it might be OK with g