diff options
| author | gingerBill <bill@gingerbill.org> | 2023-02-26 13:26:35 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-02-26 13:26:35 +0000 |
| commit | a9182cfd8cf9dd8cec125221e39c0fcd7a3fd3e3 (patch) | |
| tree | f66b628ddf041d894a89469974969045167c5f15 /src/common.cpp | |
| parent | de6c0f682ffae88dfa6f64b44652e243f651a0a6 (diff) | |
Allow compound literals to access fields through `using`
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 5 |
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" |