mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-11 15:49:38 +00:00
Avoid linkage warning.
This commit is contained in:
parent
5235262855
commit
b7777c9ca3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user