Deleted overload that rejects truncating conversions when constructing without a reference.
Synopsis
Declared in <mp‐units/framework/quantity.h>
template<typename Value>
requires detail::ExplicitFromNumber<reference> && (!detail::RepConstructibleFrom<rep, Value>)
constexpr
explicit(!std::convertible_to<Value, rep> || !mp_units::implicitly_convertible(quantity_spec, dimensionless))
quantity(Value val) = delete;
Parameters
Name |
Description |
val |
the numerical value that would be truncated when converted to |
Created with MrDocs