Skip to content

Commit

Permalink
Added emplace by index to variant (variadic)
Browse files Browse the repository at this point in the history
#660 byte_stream_reader::skip error
  • Loading branch information
jwellbelove committed Jan 20, 2023
1 parent 3beff56 commit 38c8074
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion arduino/library-arduino.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Embedded Template Library - Arduino",
"version": "20.35.10",
"version": "20.35.11",
"authors": {
"name": "John Wellbelove",
"email": "john.wellbelove@etlcpp.com"
Expand Down
2 changes: 1 addition & 1 deletion arduino/library-arduino.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Embedded Template Library - Arduino
version=20.35.10
version=20.35.11
author= John Wellbelove <john.wellbelove@etlcpp.com>
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
license=MIT
Expand Down
2 changes: 1 addition & 1 deletion include/etl/private/variant_variadic.h
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ namespace etl
{
static_assert(Index < etl::private_variant::parameter_pack<TTypes...>::size, "Index out of range");

using type = typename etl::private_variant::parameter_pack<TTypes...>::type_from_index<Index>::type;
using type = typename etl::private_variant::parameter_pack<TTypes...>::template type_from_index<Index>::type;

operation(private_variant::Destroy, data, nullptr);

Expand Down
2 changes: 1 addition & 1 deletion include/etl/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ SOFTWARE.

#define ETL_VERSION_MAJOR 20
#define ETL_VERSION_MINOR 35
#define ETL_VERSION_PATCH 10
#define ETL_VERSION_PATCH 11

#define ETL_VERSION ETL_STRING(ETL_VERSION_MAJOR) "." ETL_STRING(ETL_VERSION_MINOR) "." ETL_STRING(ETL_VERSION_PATCH)
#define ETL_VERSION_W ETL_WIDE_STRING(ETL_VERSION_MAJOR) L"." ETL_WIDE_STRING(ETL_VERSION_MINOR) L"." ETL_WIDE_STRING(ETL_VERSION_PATCH)
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Embedded Template Library",
"version": "20.35.10",
"version": "20.35.11",
"authors": {
"name": "John Wellbelove",
"email": "john.wellbelove@etlcpp.com"
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Embedded Template Library
version=20.35.10
version=20.35.11
author= John Wellbelove <john.wellbelove@etlcpp.com>
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
license=MIT
Expand Down
5 changes: 5 additions & 0 deletions support/Release notes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
===============================================================================
20.35.11
Added emplace by index to variant (variadic)
#660 byte_stream_reader::skip error

===============================================================================
20.35.10
#659 emplace member functions return reference to emplaced value
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.35.10
20.35.11

0 comments on commit 38c8074

Please sign in to comment.