diff --git a/include/etl/deque.h b/include/etl/deque.h index fa9d657a..b829da5d 100644 --- a/include/etl/deque.h +++ b/include/etl/deque.h @@ -238,8 +238,6 @@ namespace etl protected: - typedef typename etl::parameter_type::type parameter_t; - //************************************************************************* /// Test for an iterator. //************************************************************************* @@ -1624,7 +1622,7 @@ namespace etl /// If asserts or exceptions are enabled, throws an etl::deque_full if the deque is already full. ///\param item The item to push to the deque. //************************************************************************* - void push_back(parameter_t item) + void push_back(const T& item) { #if defined(ETL_CHECK_PUSH_POP) ETL_ASSERT(!full(), ETL_ERROR(deque_full)); @@ -1752,7 +1750,7 @@ namespace etl /// If asserts or exceptions are enabled, throws an etl::deque_full if the deque is already full. ///\param item The item to push to the deque. //************************************************************************* - void push_front(parameter_t item) + void push_front(const T& item) { #if defined(ETL_CHECK_PUSH_POP) ETL_ASSERT(!full(), ETL_ERROR(deque_full)); @@ -2065,7 +2063,7 @@ namespace etl //********************************************************************* /// Create a new element with a default value at the front. //********************************************************************* - void create_element_front(parameter_t value) + void create_element_front(const T& value) { --_begin; ::new (&(*_begin)) T(value); @@ -2076,7 +2074,7 @@ namespace etl //********************************************************************* /// Create a new element with a value at the back //********************************************************************* - void create_element_back(parameter_t value) + void create_element_back(const T& value) { ::new (&(*_end)) T(value); ++_end; @@ -2274,7 +2272,7 @@ namespace etl //************************************************************************* /// Assigns data to the deque. //************************************************************************* - explicit deque(size_t n, typename etl::ideque::parameter_t value = value_type()) + explicit deque(size_t n, const T& value = value_type()) : etl::ideque(reinterpret_cast(&buffer[0]), MAX_SIZE, BUFFER_SIZE) { this->assign(n, value); diff --git a/include/etl/version.h b/include/etl/version.h index 8cf86d59..cb340a46 100644 --- a/include/etl/version.h +++ b/include/etl/version.h @@ -39,7 +39,7 @@ SOFTWARE. #define ETL_VERSION_MAJOR 14 #define ETL_VERSION_MINOR 5 -#define ETL_VERSION_PATCH 0 +#define ETL_VERSION_PATCH 1 #define ETL_VERSION ETL_STRINGIFY(ETL_VERSION_MAJOR) ETL_STRINGIFY(ETL_VERSION_MINOR) ETL_STRINGIFY(ETL_VERSION_PATCH) #define ETL_VERSION_W ETL_WIDE_STRING(ETL_CONCAT(ETL_CONCAT(ETL_VERSION_MAJOR, ETL_VERSION_MINOR), ETL_VERSION_PATCH)) diff --git a/support/Release notes.txt b/support/Release notes.txt index 263b614f..e2fa249f 100644 --- a/support/Release notes.txt +++ b/support/Release notes.txt @@ -1,3 +1,7 @@ +=============================================================================== +14.5.1 +Fixed deque pushes for literals. + =============================================================================== 14.5.0 Added move algorithms and utility to 'alternate' STL.