We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff7ccc commit e20a975Copy full SHA for e20a975
1 file changed
lib/inc/drogon/utils/Utilities.h
@@ -656,7 +656,8 @@ T fromString(const std::string &p) noexcept(false)
656
// ("1a" should not return 1)
657
if (pos != p.size())
658
throw std::invalid_argument("Invalid value");
659
- if ((v < static_cast<long double>((std::numeric_limits<T>::min)())) ||
+ if ((v <
660
+ static_cast<long double>((std::numeric_limits<T>::lowest)())) ||
661
(v > static_cast<long double>((std::numeric_limits<T>::max)())))
662
throw std::out_of_range("Value out of range");
663
return static_cast<T>(v);
0 commit comments