From 6d05d79dc2970883a9b7e2c49d71bdbc8348e3e2 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 24 Feb 2024 10:56:14 +0000 Subject: [PATCH 1/3] #850 Fixed names according to Arduino's guidelines --- support/Release notes.txt | 4 ++++ version.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/support/Release notes.txt b/support/Release notes.txt index 69ad889d5..e5ebacf8a 100644 --- a/support/Release notes.txt +++ b/support/Release notes.txt @@ -1,3 +1,7 @@ +=============================================================================== +20.38.11 +#850 Fixed names according to Arduino's guidelines + =============================================================================== 20.38.10 #800 Prioritize ETL_TARGET_OS_* for mutex selection diff --git a/version.txt b/version.txt index 86319d55b..769a31cbb 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -20.38.10 +20.38.11 From a98d387a118281eb6bcd45ebbbf002ddc6626fe7 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 24 Feb 2024 11:49:54 +0000 Subject: [PATCH 2/3] #850 Fixed names according to Arduino's guidelines --- arduino/library-arduino.json | 2 +- arduino/library-arduino.properties | 2 +- include/etl/version.h | 2 +- library.json | 2 +- library.properties | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arduino/library-arduino.json b/arduino/library-arduino.json index 551908996..69f694161 100644 --- a/arduino/library-arduino.json +++ b/arduino/library-arduino.json @@ -1,6 +1,6 @@ { "name": "Embedded Template Library ETL", - "version": "20.38.10", + "version": "20.38.11", "authors": { "name": "John Wellbelove", "email": "john.wellbelove@etlcpp.com" diff --git a/arduino/library-arduino.properties b/arduino/library-arduino.properties index 0d57386b7..d13b639a1 100644 --- a/arduino/library-arduino.properties +++ b/arduino/library-arduino.properties @@ -1,5 +1,5 @@ name=Embedded Template Library ETL -version=20.38.10 +version=20.38.11 author= John Wellbelove maintainer=John Wellbelove license=MIT diff --git a/include/etl/version.h b/include/etl/version.h index 1a4e347ab..eb1b2fb99 100644 --- a/include/etl/version.h +++ b/include/etl/version.h @@ -40,7 +40,7 @@ SOFTWARE. #define ETL_VERSION_MAJOR 20 #define ETL_VERSION_MINOR 38 -#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) diff --git a/library.json b/library.json index 6993d1af9..c982e6874 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Embedded Template Library", - "version": "20.38.10", + "version": "20.38.11", "authors": { "name": "John Wellbelove", "email": "john.wellbelove@etlcpp.com" diff --git a/library.properties b/library.properties index b35715897..a10585eea 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Embedded Template Library -version=20.38.10 +version=20.38.11 author= John Wellbelove maintainer=John Wellbelove license=MIT From 7c24f66ecc1015cc737fdab8d0dc92b0fa9b89ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Kn=C3=B6rle?= <133668094+KnoerleMaTLS@users.noreply.github.com> Date: Sat, 9 Mar 2024 15:56:06 +0100 Subject: [PATCH 3/3] fix(string_stream): add missing initializations of const format specifiers (#849) The const variables "left" and "right" are const default initialized. The C++ standard states the following: "A class type T is const-default-constructible if default-initialization of T would invoke a user-provided constructor of T." Since the "left_soec" and "right_spec" structs are PODs they are not initialized per default. Due to the "constness" the variable can not be modified later one, therefore the POD is in a state in which it is not useful at all. Since the mentioned structs are empty there would be no problem in this case. This is an issue in the C++ standard (CWG Issue 253). Some compilers already handle this issue with their own solution despite the fact, that the standard did not provide a solution yet. For some exotic compilers (e.g. Tasking for TriCore) the include of the "string_stream" header caused compilation errors: "const variable "etl::left" requires an initializer -- class "etl::private_basic_format_spec::left_spec" has no user-provided default constructor" References: https://en.cppreference.com/w/cpp/language/default_initialization https://cplusplus.github.io/CWG/issues/253.html https://stackoverflow.com/questions/7411515/why-does-c-require-a-user-provided-default-constructor-to-default-construct-a https://stackoverflow.com/questions/24943665/why-is-a-constructor-necessary-in-a-const-member-struct --- include/etl/basic_format_spec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/etl/basic_format_spec.h b/include/etl/basic_format_spec.h index 90a48c1ac..36c2d74c5 100644 --- a/include/etl/basic_format_spec.h +++ b/include/etl/basic_format_spec.h @@ -172,10 +172,10 @@ namespace etl static ETL_CONSTANT private_basic_format_spec::base_spec hex(16U); //********************************* - static ETL_CONSTANT private_basic_format_spec::left_spec left; + static ETL_CONSTANT private_basic_format_spec::left_spec left = private_basic_format_spec::left_spec(); //********************************* - static ETL_CONSTANT private_basic_format_spec::right_spec right; + static ETL_CONSTANT private_basic_format_spec::right_spec right = private_basic_format_spec::right_spec(); //********************************* static ETL_CONSTANT private_basic_format_spec::boolalpha_spec boolalpha(true);