[#mp_units-quantity-01-2constructor-0f0]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity-01.adoc[quantity]::quantity
:relfileprefix: ../../
:mrdocs:

Deleted overload that rejects truncating conversions when constructing without a reference&period;

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;quantity&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Value&gt;
requires detail&colon;&colon;ExplicitFromNumber&lt;reference&gt; &amp;&amp; (!detail&colon;&colon;RepConstructibleFrom&lt;rep, Value&gt;)
constexpr
explicit(!std&colon;&colon;convertible&lowbar;to&lt;Value, rep&gt; &verbar;&verbar; !mp&lowbar;units&colon;&colon;implicitly&lowbar;convertible(quantity&lowbar;spec, dimensionless))
quantity(Value val) = delete;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *val*
| the numerical value that would be truncated when converted to `rep`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
