From 3aeb9f31b025cacd076a80e1d61a39e4bb6621e3 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 11 Jan 2021 00:36:24 +0100 Subject: [PATCH] Mark toEngineeringString inline to prevent linker errors --- plugins/libimhex/include/helpers/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libimhex/include/helpers/utils.hpp b/plugins/libimhex/include/helpers/utils.hpp index ae6b8b944..7a9dfc078 100644 --- a/plugins/libimhex/include/helpers/utils.hpp +++ b/plugins/libimhex/include/helpers/utils.hpp @@ -158,7 +158,7 @@ namespace hex { return T(1) << bit_width(T(x - 1)); } - std::string toEngineeringString(double value) { + inline std::string toEngineeringString(double value) { constexpr std::array prefixes = { "a", "f", "p", "n", "u", "m", "", "k", "M", "G", "T", "P", "E" }; int8_t prefixIndex = 6;