mp_units::silent_cast

Intentionally silent narrowing cast with compiler float-conversion diagnostics suppressed.

Synopsis

Declared in <mp-units/framework/scaling.h>
template<
    typename To,
    typename From>
[[nodiscard]]
constexpr
To
silent_cast(From value) noexcept;

Template Parameters

Name Description
To target type
From source type (deduced)