mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
another attempt at #1904
This commit is contained in:
@@ -397,8 +397,9 @@ protected:
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
template <typename F, typename T>
|
||||
void checkUpperLimit(const F& from) const
|
||||
void POCO_UNUSED checkUpperLimit(const F& from) const
|
||||
{
|
||||
if ((sizeof(T) < sizeof(F)) &&
|
||||
(from > static_cast<F>(std::numeric_limits<T>::max())))
|
||||
@@ -412,6 +413,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template <typename F, typename T>
|
||||
void checkUpperLimitFloat(const F& from) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user