summaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-07-17 10:28:00 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-05-02 08:08:18 +0000
commit658104687cc018a8de634861c687c37a29ca10ec (patch)
treed55691124063105542e80c896c98d6ce2a63ed27 /src/io
parentb5ab3d6d25c024fc120746514edfff33c55074d2 (diff)
downloadtmwa-underlying_type.tar.gz
tmwa-underlying_type.tar.bz2
tmwa-underlying_type.tar.xz
tmwa-underlying_type.zip
Use std::underlying_typeunderlying_type
Since according to the comment, TMWA already depended on GCC 4.7.
Diffstat (limited to 'src/io')
-rw-r--r--src/io/extract.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/io/extract.hpp b/src/io/extract.hpp
index 897f50e..3eecf3c 100644
--- a/src/io/extract.hpp
+++ b/src/io/extract.hpp
@@ -33,8 +33,6 @@
#include "../compat/time_t.hpp"
-#include "../generic/enum.hpp"
-
namespace tmwa
{
@@ -83,7 +81,7 @@ bool impl_extract(XString str, TimeT *tv)
template<class T, typename=typename std::enable_if<std::is_enum<T>::value>::type>
bool extract_as_int(XString str, T *iv)
{
- typedef typename underlying_type<T>::type U;
+ typedef typename std::underlying_type<T>::type U;
U v;
// defer to integer version
if (!extract(str, &v))