Mark toEngineeringString inline to prevent linker errors
This commit is contained in:
parent
8b19f0c3c0
commit
3aeb9f31b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user