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:
Andreas W 2020-06-18 14:11:07 +02:00 committed by GitHub
parent d21be04f66
commit cf1c623686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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