aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.h
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerStack.h')
-rw-r--r--CompilerStack.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/CompilerStack.h b/CompilerStack.h
index 928815cc..6286eb7f 100644
--- a/CompilerStack.h
+++ b/CompilerStack.h
@@ -84,6 +84,22 @@ public:
/// scanning the source code - this is useful for printing exception information.
static bytes staticCompile(std::string const& _sourceCode, bool _optimize = false);
+ /// Compile under msvc results in error CC2280
+ CompilerStack& operator=(const CompilerStack& _other)
+ {
+ m_scanner = _other.m_scanner;
+ m_globalContext = _other.m_globalContext;
+ m_contractASTNode = _other.m_contractASTNode;
+ m_parseSuccessful = _other.m_parseSuccessful;
+ m_interface.reset(_other.m_interface.get());
+ m_userDocumentation.reset(_other.m_userDocumentation.get());
+ m_devDocumentation.reset(_other.m_devDocumentation.get());
+ m_compiler = _other.m_compiler;
+ m_interfaceHandler = _other.m_interfaceHandler;
+ m_bytecode = m_bytecode;
+ return *this;
+ }
+
private:
std::shared_ptr<Scanner> m_scanner;
std::shared_ptr<GlobalContext> m_globalContext;