mirror of
https://github.com/ETLCPP/etl.git
synced 2026-05-01 03:19:10 +08:00
Merge branch 'master' into development
# Conflicts: # include/etl/optional.h
This commit is contained in:
commit
19eff9d69e
@ -768,7 +768,11 @@ namespace etl
|
||||
{
|
||||
if (this != &other)
|
||||
{
|
||||
storage.value = other.storage.value;
|
||||
if (other.valid)
|
||||
{
|
||||
storage.value = other.storage.value;
|
||||
}
|
||||
|
||||
valid = other.valid;
|
||||
}
|
||||
|
||||
@ -783,7 +787,7 @@ namespace etl
|
||||
{
|
||||
if (this != &other)
|
||||
{
|
||||
if (other.has_value())
|
||||
if (other.valid)
|
||||
{
|
||||
storage.value = etl::move(other.storage.value);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user