diff --git a/arbor/include/arbor/sampling.hpp b/arbor/include/arbor/sampling.hpp index 97a89cd4b60523d2635fd00de3c2c3fa3517e957..fc29c99d9f7c12740f6e018573f9e6f803dfbe40 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; }; }