diff liboctave/Sparse-C.cc @ 7549:ff9c2bb7abc7

workaround to enable compiling with Intel C++ 10.1
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 04 Mar 2008 14:18:52 -0500
parents ada435261879
children 06b9903a029b
line wrap: on
line diff
--- a/liboctave/Sparse-C.cc
+++ b/liboctave/Sparse-C.cc
@@ -33,7 +33,6 @@
 #include "Sparse.h"
 #include "Sparse.cc"
 
-#include "oct-sort.cc"
 
 static double
 xabs (const Complex& x)
@@ -55,6 +54,10 @@
 	  || ((xabs (a) == xabs (b)) && (arg (a) > arg (b))));
 }
 
+// This file must be included after the < and > operators are
+// defined to avoid errors with the Intel C++ compiler.
+#include "oct-sort.cc"
+
 template <>
 bool
 sparse_ascending_compare (Complex a, Complex b)