aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 859aa4a56..90632def3 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -53,6 +53,11 @@ struct TypeIsPointer<T *> {
enum {value = true};
};
+template <typename T> struct TypeIsPtrSizedInteger { enum {value = false}; };
+template <> struct TypeIsPtrSizedInteger<isize> { enum {value = true}; };
+template <> struct TypeIsPtrSizedInteger<usize> { enum {value = true}; };
+
+
#include "unicode.cpp"
#include "array.cpp"
#include "threading.cpp"