diff --git a/include/etl/observer.h b/include/etl/observer.h index dcc1edb3..6332a6cf 100644 --- a/include/etl/observer.h +++ b/include/etl/observer.h @@ -176,6 +176,16 @@ namespace etl ///\tparam TNotification the notification type. ///\param n The notification. //***************************************************************** +#if ETL_CPP11_SUPPORTED && !defined(ETL_OBSERVER_FORCE_CPP03) + template + void notify_observers(TNotification... n) + { + for (auto observer : observer_list) + { + observer->notification(n...); + } + } +#else template void notify_observers(TNotification n) { @@ -184,6 +194,8 @@ namespace etl observer_list[i]->notification(n); } } +#endif + protected: diff --git a/include/etl/version.h b/include/etl/version.h index 97ee6ab1..5edbdfc9 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 26 -#define ETL_VERSION_PATCH 5 +#define ETL_VERSION_PATCH 6 #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 c92f7929..a50d4076 100644 --- a/support/Release notes.txt +++ b/support/Release notes.txt @@ -1,3 +1,7 @@ +=============================================================================== +14.26.6 +Added variadic parameters to observer notification. + =============================================================================== 14.26.5 Fixed misplaced semicolon in error_handler.h