mirror of
https://github.com/mpusz/mp-units.git
synced 2026-04-28 18:12:12 +02:00
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