Skip to content

Commit 7372d12

Browse files
author
Stefan Pszczolkowski
committed
Fixed compilation error of irtkMatrix.h on MAc regarding friend declarations
1 parent cba7ace commit 7372d12

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

geometry++/include/irtkMatrix.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ class irtkMatrix : public irtkObject
171171
// Matrix square root.
172172
friend irtkMatrix sqrtm(irtkMatrix);
173173

174-
friend irtkMatrix FrechetMean(irtkMatrix *, int, int = 10);
174+
friend irtkMatrix FrechetMean(irtkMatrix *, int, int);
175175

176-
friend irtkMatrix FrechetMean(irtkMatrix *, double *, int, int = 10);
176+
friend irtkMatrix FrechetMean(irtkMatrix *, double *, int, int);
177177

178178
#ifndef USE_STL
179179
/// Comparison operator != (if USE_STL is defined, negate == operator)
@@ -274,6 +274,10 @@ class irtkMatrix : public irtkObject
274274
#endif
275275
};
276276

277+
//Declare FrechetMean friend functions with default value
278+
irtkMatrix FrechetMean(irtkMatrix *, int, int = 10);
279+
irtkMatrix FrechetMean(irtkMatrix *, double *, int, int = 10);
280+
277281
//
278282
// Access operators
279283
//

0 commit comments

Comments
 (0)