From 8ce76f29ab6bc6ea0809c085b4f395373b3cb8d7 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 9 Apr 2013 17:59:01 -0700 Subject: Also implement x32 support --- src/common/extract.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common/extract.hpp') diff --git a/src/common/extract.hpp b/src/common/extract.hpp index 3198d5d..ae1a74b 100644 --- a/src/common/extract.hpp +++ b/src/common/extract.hpp @@ -25,6 +25,7 @@ #include "const_array.hpp" #include "mmo.hpp" +#include "utils.hpp" template::value && !std::is_same::value>::type> bool extract(const_string str, T *iv) @@ -58,6 +59,12 @@ bool extract(const_string str, T *iv) } } +inline +bool extract(const_string str, TimeT *tv) +{ + return extract(str, &tv->value); +} + // extra typename=void to workaround some duplicate overload rule template::value>::type, typename=void> bool extract(const_string str, T *iv) -- cgit v1.2.3-70-g09d2