mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
Use etl::move instead of std::move (#233)
Both optional and queue used std::move without checking ETL_NOT_USING_STL. Both usages can simply use etl::move instead.
This commit is contained in:
parent
d21be04f66
commit
cf1c623686
@ -167,7 +167,7 @@ namespace etl
|
||||
//***************************************************************************
|
||||
optional(T&& value_)
|
||||
{
|
||||
::new (storage.template get_address<T>()) T(std::move(value_));
|
||||
::new (storage.template get_address<T>()) T(etl::move(value_));
|
||||
valid = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -618,7 +618,7 @@ namespace etl
|
||||
queue(queue&& rhs)
|
||||
: base_t(reinterpret_cast<T*>(&buffer[0]), SIZE)
|
||||
{
|
||||
base_t::move_clone(std::move(rhs));
|
||||
base_t::move_clone(etl::move(rhs));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user