Fix forward in tuple ctor (#1116)

This commit is contained in:
Roland Reichwein 2025-06-05 10:54:43 +02:00 committed by GitHub
parent ea89cf79bc
commit e2f2a39a97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -333,7 +333,7 @@ namespace etl
etl::is_convertible<UHead, THead>::value, int> = 0>
ETL_CONSTEXPR14
tuple(tuple<UHead, UTail...>&& other)
: base_type(etl::forward<tuple<UHead, UTail...>>(other.get_base()))
: base_type(etl::forward<tuple<UTail...>>(other.get_base()))
, value(etl::forward<UHead>(other.get_value()))
{
}
@ -347,7 +347,7 @@ namespace etl
!etl::is_convertible<UHead, THead>::value, int> = 0>
ETL_CONSTEXPR14
explicit tuple(tuple<UHead, UTail...>&& other)
: base_type(etl::forward<tuple<UHead, UTail...>>(other.get_base()))
: base_type(etl::forward<tuple<UTail...>>(other.get_base()))
, value(etl::forward<UHead>(other.get_value()))
{
}
@ -361,7 +361,7 @@ namespace etl
etl::is_convertible<UHead, THead>::value, int> = 0>
ETL_CONSTEXPR14
tuple(const tuple<UHead, UTail...>&& other)
: base_type(etl::forward<tuple<UHead, UTail...>>(other.get_base()))
: base_type(etl::forward<tuple<UTail...>>(other.get_base()))
, value(etl::forward<UHead>(other.get_value()))
{
}
@ -375,7 +375,7 @@ namespace etl
!etl::is_convertible<UHead, THead>::value, int> = 0>
ETL_CONSTEXPR14
explicit tuple(const tuple<UHead, UTail...>&& other)
: base_type(etl::forward<tuple<UHead, UTail...>>(other.get_base()))
: base_type(etl::forward<tuple<UTail...>>(other.get_base()))
, value(etl::forward<UHead>(other.get_value()))
{
}