[#mp_units-quantity-01-2constructor-0fc] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::quantity :relfileprefix: ../../ :mrdocs: Deleted overload that rejects truncating conversions of the numerical value. == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Value, xref:mp_units/Reference-0ba.adoc[Reference] R2> requires (equivalent(unit, get_unit(R2{}))) && (!detail::RepConstructibleFrom<rep, Value>) constexpr quantity( Value val, R2 ref) = delete; ---- == Parameters [cols="1,4"] |=== | Name| Description | *val* | the numerical value that would be truncated when converted to `rep` | *ref* | a reference whose unit is equivalent to `unit` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#