From 3b5d644c65ae79c32d41fe90ed15b235dad673ea Mon Sep 17 00:00:00 2001
From: t steve <pro@stevetonneau.fr>
Date: Fri, 24 Nov 2017 15:24:55 +0100
Subject: [PATCH] inlining bin and fact to avoid redefinition

---
 include/spline/bernstein.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/spline/bernstein.h b/include/spline/bernstein.h
index d334098..c55afd3 100644
--- a/include/spline/bernstein.h
+++ b/include/spline/bernstein.h
@@ -23,7 +23,7 @@ namespace spline
 ///
 /// \brief Computes factorial of a number
 ///
-unsigned int fact(const unsigned int n)
+inline unsigned int fact(const unsigned int n)
 {
     assert(n>=0);
     int res = 1;
@@ -35,7 +35,7 @@ unsigned int fact(const unsigned int n)
 ///
 /// \brief Computes a binomal coefficient
 ///
-unsigned int bin(const unsigned  int n, const unsigned  int k)
+inline unsigned int bin(const unsigned  int n, const unsigned  int k)
 {
     return fact(n) / (fact(k) * fact(n - k));
 }
-- 
GitLab