You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some runtime methods are not very intuitive for users. Therefore, some examples in the documentation will help.
Check the generated doxygen documentation and try to use example where it makes sense. For example here:
/**
* Utility to safely construct zserio numeric type wrapper from its underlying value with range checking.
*
* Overload for dynamic length types wrappers.
*
* \param value Underlying value to convert to the type wrapper.
* \param numBits Number of bits as a length of a dynamic length numeric type.
*
* \return Numeric type wrapper constructed after range checking (if needed).
*
* \throw OutOfRangeException when the underlying value is out of range of the zserio numeric type.
*/
template <typename T,
std::enable_if_t<std::is_base_of_v<detail::NumericTypeWrapper<typename T::ValueType>, T>, int> = 0>
constexpr T fromCheckedValue(typename T::ValueType value, BitSize numBits)
{
detail::RangeChecker<T>::check(value, numBits);
return T(value);
}
Some runtime methods are not very intuitive for users. Therefore, some examples in the documentation will help.
Check the generated doxygen documentation and try to use example where it makes sense. For example here:
Reported by @reinco.
The text was updated successfully, but these errors were encountered: