diff --git a/Convention/[Runtime]/Config.hpp b/Convention/[Runtime]/Config.hpp index 40c2e63..5583597 100644 --- a/Convention/[Runtime]/Config.hpp +++ b/Convention/[Runtime]/Config.hpp @@ -1965,8 +1965,8 @@ namespace Convention /** * @brief 拷贝赋值函数 */ - template().WriteValue(std::declval().ReadConstValue())> - instance& operator=(const instance& value) noexcept + template().WriteValue(std::declval().ReadConstValue())>> + instance& operator=(const instance& value) { if constexpr (IsUnique) { @@ -1981,7 +1981,7 @@ namespace Convention /** * @brief 拷贝赋值函数 */ - virtual instance& operator=(const instance& value) noexcept + virtual instance& operator=(const instance& value) noexcept(IsUnique == false) { if constexpr (IsUnique) {