diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-12 10:34:29 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-12 10:34:29 +0800 |
commit | 314edf07074ca2b211463ccf6b0e79ef051ffaa2 (patch) | |
tree | b0236674d408e384dceba0c1b16e6266d2333cca /src/types.hpp | |
parent | 19d4cd58c3ba07dd4bce84dc7c94eafb20b6a2ff (diff) | |
download | mrust-314edf07074ca2b211463ccf6b0e79ef051ffaa2.tar.gz |
Parse - Fix against newer compiler tests
Diffstat (limited to 'src/types.hpp')
-rw-r--r-- | src/types.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/types.hpp b/src/types.hpp index f70de94a..2b9f4a86 100644 --- a/src/types.hpp +++ b/src/types.hpp @@ -113,6 +113,10 @@ public: {}
TypeRef(const TypeRef& other);
+ TypeRef& operator=(TypeRef&& other) {
+ m_data = mv$( other.m_data );
+ return *this;
+ }
TypeRef& operator=(const TypeRef& other) {
m_data = TypeRef(other).m_data;
return *this;
|