From b7777c9ca367c6a799440d460930afc414a39195 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 24 May 2024 15:39:38 -0400 Subject: [PATCH] Avoid linkage warning. --- Numeric/StringSimilarity.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Numeric/StringSimilarity.hpp b/Numeric/StringSimilarity.hpp index d830bd988..dadf33a7a 100644 --- a/Numeric/StringSimilarity.hpp +++ b/Numeric/StringSimilarity.hpp @@ -19,7 +19,7 @@ namespace Numeric { /// /// @returns A number in the range 0.0 to 1.0 indicating the similarity between two strings; /// 1.0 is most similar, 0.0 is least. -double similarity(std::string_view first, std::string_view second) { +inline double similarity(std::string_view first, std::string_view second) { if(first.size() < 2 || second.size() < 2) { return 0.0; }