diff options
author | John Hodge <tpg@mutabah.net> | 2019-10-26 16:09:24 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2019-10-26 16:09:24 +0800 |
commit | 9ce35b65e5be4ce75b3b7aabe29c432128a17279 (patch) | |
tree | 069581e21b424a24c92b1f87e7d00f3af006366d /src/hir/type.hpp | |
parent | abd2a151b9107221e753c5b2fe09a143d09ad1f5 (diff) | |
download | mrust-9ce35b65e5be4ce75b3b7aabe29c432128a17279.tar.gz |
All - Compilation fixes on VS2015 (constructors, warnings, missing files, class/struct disagreement, <algorithm>)
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r-- | src/hir/type.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp index fe28deed..cbc2e94a 100644 --- a/src/hir/type.hpp +++ b/src/hir/type.hpp @@ -93,6 +93,15 @@ struct LifetimeRef // Values below 2^16 are parameters/static, values above are per-function region IDs allocated during region inferrence. uint32_t binding = UNKNOWN; + LifetimeRef() + :binding(UNKNOWN) + { + } + LifetimeRef(uint32_t binding) + :binding(binding) + { + } + static LifetimeRef new_static() { LifetimeRef rv; rv.binding = STATIC; |