We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1a92f0 commit 70b381cCopy full SHA for 70b381c
src/base/type/physicalvalue.h
@@ -19,7 +19,7 @@ template <typename Value, Refl::is_enum Unit> struct PhysicalValue
19
template <std::same_as<double> = Value>
20
static PhysicalValue fromString(const std::string &str)
21
{
22
- Text::ValueUnit vu{str};
+ const Text::ValueUnit vu{str};
23
return {vu.getValue(), Refl::get_enum<Unit>(vu.getUnit())};
24
}
25
0 commit comments