mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Updated version and release notes
This commit is contained in:
parent
5c91f8b573
commit
54ba9a8aea
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Embedded Template Library ETL",
|
||||
"version": "20.43.2",
|
||||
"version": "20.43.3",
|
||||
"authors": {
|
||||
"name": "John Wellbelove",
|
||||
"email": "john.wellbelove@etlcpp.com"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name=Embedded Template Library ETL
|
||||
version=20.43.2
|
||||
version=20.43.3
|
||||
author= John Wellbelove <john.wellbelove@etlcpp.com>
|
||||
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
|
||||
license=MIT
|
||||
|
||||
@ -71,7 +71,7 @@ namespace etl
|
||||
/// \param f The delegate to be invoked.
|
||||
/// \param args The arguments to bind to the delegate.
|
||||
//*********************************************************************
|
||||
ETL_CONSTEXPR14 closure(const delegate_type& f, const TArgs... args) ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS)
|
||||
ETL_CONSTEXPR14 closure(const delegate_type& f, const TArgs... args)
|
||||
: m_f(f)
|
||||
, m_args(args...)
|
||||
{
|
||||
@ -81,7 +81,7 @@ namespace etl
|
||||
/// Invoke the stored delegate with the bound arguments.
|
||||
/// \return The result of the delegate invocation.
|
||||
//*********************************************************************
|
||||
ETL_CONSTEXPR14 TReturn operator()() const ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS)
|
||||
ETL_CONSTEXPR14 TReturn operator()() const
|
||||
{
|
||||
return execute(etl::index_sequence_for<TArgs...>{});
|
||||
}
|
||||
@ -94,7 +94,7 @@ namespace etl
|
||||
/// \param arg The new value to bind.
|
||||
//*********************************************************************
|
||||
template <size_t Index, typename UArg>
|
||||
ETL_CONSTEXPR14 void bind(UArg arg) ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS)
|
||||
ETL_CONSTEXPR14 void bind(UArg arg)
|
||||
{
|
||||
static_assert(etl::is_convertible<UArg, etl::type_list_type_at_index_t<argument_types, Index>>::value, "Argument is not convertible");
|
||||
static_assert(!etl::is_reference<UArg>::value, "Cannot bind reference arguments");
|
||||
@ -108,7 +108,7 @@ namespace etl
|
||||
/// \param args The new values to bind.
|
||||
///*********************************************************************
|
||||
template <typename... UArgs>
|
||||
ETL_CONSTEXPR14 void bind(UArgs&&... args) ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS)
|
||||
ETL_CONSTEXPR14 void bind(UArgs&&... args)
|
||||
{
|
||||
static_assert(sizeof...(UArgs) == sizeof...(TArgs), "Argument count mismatch");
|
||||
bind_impl(etl::make_index_sequence<sizeof...(TArgs)>{}, etl::forward<UArgs>(args)...);
|
||||
@ -121,7 +121,7 @@ namespace etl
|
||||
/// \param args The new values to bind.
|
||||
///*********************************************************************
|
||||
template <size_t... Indexes, typename... UArgs>
|
||||
ETL_CONSTEXPR14 void bind_impl(etl::index_sequence<Indexes...>, UArgs&&... args) ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS)
|
||||
ETL_CONSTEXPR14 void bind_impl(etl::index_sequence<Indexes...>, UArgs&&... args)
|
||||
{
|
||||
// Expand the pack and call bind<Index>(arg) for each argument
|
||||
int dummy[] = {0, (bind<Indexes>(etl::forward<UArgs>(args)), 0)...};
|
||||
@ -134,7 +134,7 @@ namespace etl
|
||||
/// \return The result of the delegate invocation.
|
||||
//*********************************************************************
|
||||
template<size_t... Indexes>
|
||||
ETL_CONSTEXPR14 TReturn execute(etl::index_sequence<Indexes...>) const ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS)
|
||||
ETL_CONSTEXPR14 TReturn execute(etl::index_sequence<Indexes...>) const
|
||||
{
|
||||
return m_f(etl::get<Indexes>(m_args)...);
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ SOFTWARE.
|
||||
|
||||
#define ETL_VERSION_MAJOR 20
|
||||
#define ETL_VERSION_MINOR 43
|
||||
#define ETL_VERSION_PATCH 2
|
||||
#define ETL_VERSION_PATCH 3
|
||||
|
||||
#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)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Embedded Template Library",
|
||||
"version": "20.43.2",
|
||||
"version": "20.43.3",
|
||||
"authors": {
|
||||
"name": "John Wellbelove",
|
||||
"email": "john.wellbelove@etlcpp.com"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name=Embedded Template Library
|
||||
version=20.43.2
|
||||
version=20.43.3
|
||||
author= John Wellbelove <john.wellbelove@etlcpp.com>
|
||||
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
|
||||
license=MIT
|
||||
|
||||
@ -1 +1 @@
|
||||
20.43.2
|
||||
20.43.3
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user