1
0
mirror of synced 2024-11-12 02:00:52 +01:00

Mark toEngineeringString inline to prevent linker errors

This commit is contained in:
WerWolv 2021-01-11 00:36:24 +01:00
parent 8b19f0c3c0
commit 3aeb9f31b0

View File

@ -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;