Update Config.hpp
This commit is contained in:
@@ -1965,8 +1965,8 @@ namespace Convention
|
|||||||
/**
|
/**
|
||||||
* @brief 拷贝赋值函数
|
* @brief 拷贝赋值函数
|
||||||
*/
|
*/
|
||||||
template<typename = std::declval<instance>().WriteValue(std::declval<instance>().ReadConstValue())>
|
template<typename = std::void_t<std::declval<instance>().WriteValue(std::declval<instance>().ReadConstValue())>>
|
||||||
instance& operator=(const instance& value) noexcept
|
instance& operator=(const instance& value)
|
||||||
{
|
{
|
||||||
if constexpr (IsUnique)
|
if constexpr (IsUnique)
|
||||||
{
|
{
|
||||||
@@ -1981,7 +1981,7 @@ namespace Convention
|
|||||||
/**
|
/**
|
||||||
* @brief 拷贝赋值函数
|
* @brief 拷贝赋值函数
|
||||||
*/
|
*/
|
||||||
virtual instance& operator=(const instance& value) noexcept
|
virtual instance& operator=(const instance& value) noexcept(IsUnique == false)
|
||||||
{
|
{
|
||||||
if constexpr (IsUnique)
|
if constexpr (IsUnique)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user