diff options
| author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-03-05 21:00:28 +0000 |
|---|---|---|
| committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-03-05 21:20:34 +0000 |
| commit | 0478ce72f5e0e70770c0ae6737f167169b08bc08 (patch) | |
| tree | 1a1fa8a0bfb6552855fc5d03b2e5f6ca4d6d5e2a /Source/Core/Common/StringUtil.h | |
| parent | 1add30994b829b52e7f7562855a06092c153f24f (diff) | |
Source/Core/Common/StringUtil.h: include <limits> for std::numeric_limits
Without included header build fails on gcc-10 as:
```
[ 13%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/CubebUtils.cpp.o
In file included from ../../../../Source/Core/AudioCommon/CubebUtils.cpp:13:
../../../../Source/Core/Common/StringUtil.h: In function 'bool TryParse(const string&, T*)':
../../../../Source/Core/Common/StringUtil.h:84:20: error: 'numeric_limits' is not a member of 'std'
84 | if (value < std::numeric_limits<LimitsType>::min() ||
| ^~~~~~~~~~~~~~
```
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
| -rw-r--r-- | Source/Core/Common/StringUtil.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index 93199917b9..211c381abf 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -8,6 +8,7 @@ #include <cstddef> #include <cstdlib> #include <iomanip> +#include <limits> #include <locale> #include <sstream> #include <string> |
