mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
parent
0f1840a70d
commit
84031659fa
@ -768,7 +768,10 @@ namespace etl
|
||||
{
|
||||
if (this != &other)
|
||||
{
|
||||
storage.value = other.storage.value;
|
||||
if (other.valid)
|
||||
{
|
||||
storage.value = other.storage.value;
|
||||
}
|
||||
valid = other.valid;
|
||||
}
|
||||
|
||||
@ -783,7 +786,10 @@ namespace etl
|
||||
{
|
||||
if (this != &other)
|
||||
{
|
||||
storage.value = etl::move(other.storage.value);
|
||||
if (other.valid)
|
||||
{
|
||||
storage.value = etl::move(other.storage.value);
|
||||
}
|
||||
valid = other.valid;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user