} else if (value > std::numeric_limits<T>::max()) {
isc_throw(ConfigError, "'" << parameter_name << "' must not be greater than "
- << std::numeric_limits<T>::max());
+ << +std::numeric_limits<T>::max());
}
return (static_cast<T>(value));
if (value.size() > std::numeric_limits<uint8_t>::max()) {
isc_throw(BadDataTypeCast, "invalid tuple value (size "
<< value.size() << " larger than "
- << std::numeric_limits<uint8_t>::max() << ")");
+ << +std::numeric_limits<uint8_t>::max() << ")");
}
buf.push_back(static_cast<uint8_t>(value.size()));
if (tuple.getLength() > std::numeric_limits<uint8_t>::max()) {
isc_throw(BadDataTypeCast, "invalid tuple value (size "
<< tuple.getLength() << " larger than "
- << std::numeric_limits<uint8_t>::max() << ")");
+ << +std::numeric_limits<uint8_t>::max() << ")");
}
buf.push_back(static_cast<uint8_t>(tuple.getLength()));
result < numeric_limits<T>::min()) {
isc_throw(BadDataTypeCast, "unable to convert '"
<< value_str << "' to numeric type. This value is "
- " expected to be in the range of "
- << numeric_limits<T>::min()
- << ".." << numeric_limits<T>::max());
+ "expected to be in the range of "
+ << +numeric_limits<T>::min() << ".."
+ << +numeric_limits<T>::max());
}
}
return (static_cast<T>(result));