From b584abc28a1a09190b555359fd3f2f406d9d6788 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 25 Mar 2018 14:20:30 +0300 Subject: [PATCH 1/1] Mark the functions in algorithm.h as inline --- source/core/algorithm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/core/algorithm.h b/source/core/algorithm.h index 5d75763..69ec390 100644 --- a/source/core/algorithm.h +++ b/source/core/algorithm.h @@ -6,25 +6,25 @@ namespace Msp { template -typename Container::iterator find(Container &cont, const T &value) +inline typename Container::iterator find(Container &cont, const T &value) { return std::find(cont.begin(), cont.end(), value); } template -typename Container::const_iterator find(const Container &cont, const T &value) +inline typename Container::const_iterator find(const Container &cont, const T &value) { return std::find(cont.begin(), cont.end(), value); } template -typename Container::iterator find_if(Container &cont, Predicate pred) +inline typename Container::iterator find_if(Container &cont, Predicate pred) { return std::find_if(cont.begin(), cont.end(), pred); } template -typename Container::const_iterator find_if(const Container &cont, Predicate pred) +inline typename Container::const_iterator find_if(const Container &cont, Predicate pred) { return std::find_if(cont.begin(), cont.end(), pred); } -- 2.43.0