forked from mpusz/mp-units
fix(example): value_cast
prefixed with a namespace in conversion_factor
example
This commit is contained in:
@@ -33,7 +33,7 @@ template<mp_units::Quantity Target, mp_units::Quantity Source>
|
||||
requires std::constructible_from<Target, Source>
|
||||
inline constexpr double conversion_factor(Target, Source)
|
||||
{
|
||||
return value_cast<Target::unit>(1. * Source::reference).number();
|
||||
return mp_units::value_cast<Target::unit>(1. * Source::reference).number();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user