Fix the build with GCC 4.1.

This commit is contained in:
Alexey Dokuchaev
2006-10-03 21:46:25 +00:00
parent f126a82dc9
commit dfab54f15a
3 changed files with 23 additions and 10 deletions

View File

@@ -79,6 +79,15 @@
return 0;
} else {
// right->left will become aktnode
@@ -843,7 +843,7 @@
#ifdef DEBUG
-class ostream;
+#include "Str.h"
template <class T>
void recurse_AVLTout ( ostream & out, AVLItem<T> * item,
@@ -893,9 +893,9 @@
return out;
}

View File

@@ -1,15 +1,15 @@
--- class/LKV/List.h 3 Nov 2004 06:57:51 -0000 1.1
+++ class/LKV/List.h 20 Feb 2006 11:08:10 -0000
@@ -12,6 +12,8 @@
@@ -12,7 +12,7 @@
#include "AllocBuf.h"
-class ostream;
+#include "Bstream.h"
+
class ostream;
template <class T>
@@ -35,13 +37,13 @@
class List;
@@ -35,13 +35,13 @@
ListItem( void ) : T()
#ifdef DEBUG
, next((ListItem *)0), prev((ListItem *)0)
@@ -25,7 +25,7 @@
{ };
ListItem * get_next(void) const {
@@ -59,6 +61,9 @@
@@ -59,6 +59,9 @@
template <class T>
@@ -35,7 +35,7 @@
class List {
protected:
@@ -239,7 +244,7 @@
@@ -239,7 +242,7 @@
return last;
};
@@ -44,7 +44,7 @@
};
template <class T>
@@ -306,4 +311,4 @@
@@ -306,4 +309,4 @@
}

View File

@@ -30,16 +30,20 @@
return (unsigned char *) adr;
}
@@ -168,6 +177,8 @@
@@ -168,10 +177,10 @@
Str FtoStr(double val);
Str LtoStr(long);
-class ostream;
+#include <iostream.h>
+
class ostream;
ostream & operator<< (ostream & o, const Str & s);
@@ -180,4 +191,4 @@
-class istream;
istream & operator>> (istream & i, Str & s);
class BOstream;
@@ -180,4 +189,4 @@
class BIstream;
BIstream & operator>> (BIstream & i, Str & s);