diff options
-rw-r--r-- | src/mem/slicc/symbols/Type.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mem/slicc/symbols/Type.py b/src/mem/slicc/symbols/Type.py index c4d8eae06..8464544e9 100644 --- a/src/mem/slicc/symbols/Type.py +++ b/src/mem/slicc/symbols/Type.py @@ -258,6 +258,13 @@ $klass ${{self.c_ident}}$parent code.dedent() code('}') + else: + code('${{self.c_ident}}(const ${{self.c_ident}}&) = default;') + + # ******** Assignment operator ******** + + code('${{self.c_ident}}') + code('&operator=(const ${{self.c_ident}}&) = default;') # ******** Full init constructor ******** if not self.isGlobal: |