From 6fff3d914bb0162e615520c228954b375d7a245a Mon Sep 17 00:00:00 2001
From: Sam Yates <halfflat@gmail.com>
Date: Mon, 20 May 2019 12:01:14 +0200
Subject: [PATCH] Workaround for Juwels link error. (#747)

Fixes #746.

* Make `one_probe` an `inline` function rather than `static inline` in order to work around a linker issue (see issue #746).
---
 arbor/include/arbor/sampling.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arbor/include/arbor/sampling.hpp b/arbor/include/arbor/sampling.hpp
index 97a89cd4..fc29c99d 100644
--- a/arbor/include/arbor/sampling.hpp
+++ b/arbor/include/arbor/sampling.hpp
@@ -12,7 +12,7 @@ using cell_member_predicate = std::function<bool (cell_member_type)>;
 
 static cell_member_predicate all_probes = [](cell_member_type pid) { return true; };
 
-static inline cell_member_predicate one_probe(cell_member_type pid) {
+inline cell_member_predicate one_probe(cell_member_type pid) {
     return [pid](cell_member_type x) { return pid==x; };
 }
 
-- 
GitLab