ports/math/kaskade/files/patch-sources_vector.h
Thierry Thomas 777026ca2d Unbreak with gcc 3.4.
Approved by:	portmgr (marcus)
2005-08-17 05:22:58 +00:00

31 lines
674 B
C++

--- ./sources/vector.h.orig Fri Dec 10 15:21:23 1999
+++ ./sources/vector.h Tue Aug 16 22:04:53 2005
@@ -12,20 +12,20 @@
//-------------------------------------------------------------------------
-#include <iostream.h>
-#include <stdlib.h>
+#include <iostream>
+#include <stdlib.h>
//----------------------------------------------------------------------------
template<class T>
-class Vector
-{
- public:
-
- T* v;
+class Vector
+{
+ public:
+
+ T* v;
int l, h;
-
+
Vector(int l1, int h1) { allocate(l1, h1); }
Vector(int h1) { allocate( 1, h1); }
Vector() { allocate( 1, 1); }