From 7bfc070e29d5db20effd3103508827c01e52255b Mon Sep 17 00:00:00 2001 From: Mehrdad <> Date: Wed, 25 May 2016 20:33:01 -0700 Subject: [PATCH] Function definitions in headers should be inline so as to not violate ODR --- src/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.h b/src/utils.h index e5809d17a..1c8d540a8 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,7 +1,7 @@ #ifndef ORCHESTRA_UTILS_H #define ORCHESTRA_UTILS_H -std::string::iterator split_ip_address(std::string& ip_address) { +inline std::string::iterator split_ip_address(std::string& ip_address) { if (ip_address[0] == '[') { // IPv6 auto split_end = std::find(ip_address.begin() + 1, ip_address.end(), ']'); if(split_end != ip_address.end()) {