$OpenBSD: patch-qucs-core_src_matvec_h,v 1.1 2017/05/02 15:13:39 espie Exp $
friend declarations can't have default params.

Index: qucs-core/src/matvec.h
--- qucs-core/src/matvec.h.orig
+++ qucs-core/src/matvec.h
@@ -26,7 +26,16 @@
 #define __MATVEC_H__
 
 class matrix;
+class matvec;
 
+matvec stos (matvec, nr_complex_t, nr_complex_t z0 = 50.0);
+matvec stos (matvec, nr_double_t, nr_double_t z0 = 50.0);
+matvec stos (matvec, vector, nr_complex_t z0 = 50.0);
+matvec stoz (matvec, nr_complex_t z0 = 50.0);
+matvec ztos (matvec, nr_complex_t z0 = 50.0);
+matvec stoy (matvec, nr_complex_t z0 = 50.0);
+matvec ytos (matvec, nr_complex_t z0 = 50.0);
+
 class matvec
 {
  public:
@@ -103,19 +112,19 @@ class matvec
   friend vector rollet    (matvec);
   friend vector b1        (matvec);
 
-  friend matvec stos (matvec, nr_complex_t, nr_complex_t z0 = 50.0);
-  friend matvec stos (matvec, nr_double_t, nr_double_t z0 = 50.0);
-  friend matvec stos (matvec, vector, nr_complex_t z0 = 50.0);
+  friend matvec stos (matvec, nr_complex_t, nr_complex_t z0);
+  friend matvec stos (matvec, nr_double_t, nr_double_t z0);
+  friend matvec stos (matvec, vector, nr_complex_t z0);
   friend matvec stos (matvec, nr_complex_t, vector);
   friend matvec stos (matvec, vector, vector);
-  friend matvec stoz (matvec, nr_complex_t z0 = 50.0);
+  friend matvec stoz (matvec, nr_complex_t z0);
   friend matvec stoz (matvec, vector);
-  friend matvec ztos (matvec, nr_complex_t z0 = 50.0);
+  friend matvec ztos (matvec, nr_complex_t z0);
   friend matvec ztos (matvec, vector);
   friend matvec ztoy (matvec);
-  friend matvec stoy (matvec, nr_complex_t z0 = 50.0);
+  friend matvec stoy (matvec, nr_complex_t z0);
   friend matvec stoy (matvec, vector);
-  friend matvec ytos (matvec, nr_complex_t z0 = 50.0);
+  friend matvec ytos (matvec, nr_complex_t z0);
   friend matvec ytos (matvec, vector);
   friend matvec ytoz (matvec);
 
