Fixed conditional compilation macro use for template deduction guides

This commit is contained in:
John Wellbelove 2020-09-12 13:55:09 +01:00
parent 14d1b96c64
commit 2abc4ee962
6 changed files with 9 additions and 5 deletions

View File

@ -555,7 +555,7 @@ namespace etl
//*************************************************************************
/// Template deduction guides.
//*************************************************************************
#ifdef ETL_CPP17_SUPPORTED
#if ETL_CPP17_SUPPORTED
template <typename T, typename... Ts>
array(T, Ts...)
-> array<etl::enable_if_t<(etl::is_same_v<T, Ts> && ...), T>, 1 + sizeof...(Ts)>;

View File

@ -509,7 +509,7 @@ namespace etl
//*************************************************************************
/// Template deduction guides.
//*************************************************************************
#ifdef ETL_CPP17_SUPPORTED
#if ETL_CPP17_SUPPORTED
template <typename TArray>
array_view(TArray& a)
-> array_view<typename TArray::value_type>;

View File

@ -39,7 +39,7 @@ SOFTWARE.
#define ETL_VERSION_MAJOR 18
#define ETL_VERSION_MINOR 14
#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_STRINGIFY(ETL_VERSION_MAJOR) L"." ETL_STRINGIFY(ETL_VERSION_MINOR) L"." ETL_STRINGIFY(ETL_VERSION_PATCH)
#define ETL_VERSION_U16 ETL_STRINGIFY(ETL_VERSION_MAJOR) u"." ETL_STRINGIFY(ETL_VERSION_MINOR) u"." ETL_STRINGIFY(ETL_VERSION_PATCH)

View File

@ -1,6 +1,6 @@
{
"name": "Embedded Template Library",
"version": "18.14.0",
"version": "18.14.1",
"authors": {
"name": "John Wellbelove",
"email": "john.wellbelove@etlcpp.com"

View File

@ -1,5 +1,5 @@
name=Embedded Template Library
version=18.14.0
version=18.14.1
author= John Wellbelove <john.wellbelove@etlcpp.com>
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
license=MIT

View File

@ -1,3 +1,7 @@
===============================================================================
18.14.1
Fixed conditional compilation macro use for template deduction guides.
===============================================================================
18.14.0
Added template deduction guides for array and array_view