From d3040c0306a2de21a64baaf1b979aba98bb56baf Mon Sep 17 00:00:00 2001 From: Robert Braun Date: Wed, 2 Oct 2024 14:04:37 +0200 Subject: [PATCH] Make header-defined function inlined --- include/core/dcp/model/pdu/IpToStr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/dcp/model/pdu/IpToStr.hpp b/include/core/dcp/model/pdu/IpToStr.hpp index e409d53..ef85826 100644 --- a/include/core/dcp/model/pdu/IpToStr.hpp +++ b/include/core/dcp/model/pdu/IpToStr.hpp @@ -3,7 +3,7 @@ #if defined(DEBUG) || defined(LOGGING) #include -std::string ipToString(const uint32_t ip) { +inline std::string ipToString(const uint32_t ip) { return std::to_string(ip >> 24 & 0xFF) + "." + std::to_string(ip >> 16 & 0xFF) + "." + std::to_string(ip >> 8 & 0xFF) + "." + std::to_string(ip & 0xFF); } #endif // defined(DEBUG) || defined(LOGGING)