diff --git a/include/etl/forward_list.h b/include/etl/forward_list.h index 68337fc5..466a8cee 100644 --- a/include/etl/forward_list.h +++ b/include/etl/forward_list.h @@ -1756,7 +1756,7 @@ namespace etl //************************************************************************* #if ETL_USING_CPP11 && ETL_HAS_INITIALIZER_LIST template - constexpr auto make_forward_list(T... t) -> etl::forward_list, sizeof...(T)> + constexpr auto make_forward_list(T&&... t) -> etl::forward_list, sizeof...(T)> { return { { etl::forward(t)... } }; } diff --git a/include/etl/indirect_vector.h b/include/etl/indirect_vector.h index 002cad02..bf057662 100644 --- a/include/etl/indirect_vector.h +++ b/include/etl/indirect_vector.h @@ -1433,7 +1433,7 @@ namespace etl //************************************************************************* #if ETL_USING_CPP11 && ETL_HAS_INITIALIZER_LIST template - constexpr auto make_indirect_vector(T... t) -> etl::indirect_vector, sizeof...(T)> + constexpr auto make_indirect_vector(T&&... t) -> etl::indirect_vector, sizeof...(T)> { return { { etl::forward(t)... } }; } diff --git a/include/etl/vector.h b/include/etl/vector.h index b10c3275..86a30d40 100644 --- a/include/etl/vector.h +++ b/include/etl/vector.h @@ -1353,7 +1353,7 @@ namespace etl //************************************************************************* #if ETL_USING_CPP11 && ETL_HAS_INITIALIZER_LIST template - constexpr auto make_vector(T... t) -> etl::vector, sizeof...(T)> + constexpr auto make_vector(T&&... t) -> etl::vector, sizeof...(T)> { return { { etl::forward(t)... } }; }