Fixed Variant move semantic issue with older compilers.

This commit is contained in:
Patrick Lühne 2017-04-11 16:59:58 +02:00
parent e7f3c69b77
commit 108c51cf28
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
2 changed files with 5 additions and 5 deletions

View File

@ -111,8 +111,8 @@ struct Constant
Constant(const Constant &other) = delete; Constant(const Constant &other) = delete;
Constant &operator=(const Constant &other) = delete; Constant &operator=(const Constant &other) = delete;
Constant(Constant &&other) noexcept = default; Constant(Constant &&other) = default;
Constant &operator=(Constant &&other) noexcept = default; Constant &operator=(Constant &&other) = default;
std::string name; std::string name;
}; };
@ -286,8 +286,8 @@ struct Variable
Variable(const Variable &other) = delete; Variable(const Variable &other) = delete;
Variable &operator=(const Variable &other) = delete; Variable &operator=(const Variable &other) = delete;
Variable(Variable &&other) noexcept = default; Variable(Variable &&other) = default;
Variable &operator=(Variable &&other) noexcept = default; Variable &operator=(Variable &&other) = default;
std::string name; std::string name;
Type type; Type type;

@ -1 +1 @@
Subproject commit 37ab4d75aec7f565542b517e9d224b89406c78d6 Subproject commit 53492d9878c77e8d4ae0db1ce7ef07aba5d9d911