mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Fixed type traits C++03 compatibility
This commit is contained in:
parent
dda5aa09fa
commit
d21be04f66
@ -1531,6 +1531,7 @@ namespace etl
|
||||
};
|
||||
#endif
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
template <typename T>
|
||||
using types_t = typename types<T>::type;
|
||||
|
||||
@ -1551,6 +1552,7 @@ namespace etl
|
||||
|
||||
template <typename T>
|
||||
using types_cpc = typename types<T>::const_pointer_const;
|
||||
#endif
|
||||
|
||||
//***************************************************************************
|
||||
/// size_of
|
||||
|
||||
@ -48,7 +48,15 @@ SOFTWARE.
|
||||
#define ETL_PLATFORM_64BIT (UINT64_MAX == UINTPTR_MAX)
|
||||
|
||||
// Include the user's profile definition.
|
||||
#include "etl_profile.h"
|
||||
#if !defined(ETL_NO_PROFILE_HEADER) && defined(__has_include)
|
||||
#if !__has_include("etl_profile.h")
|
||||
#define ETL_NO_PROFILE_HEADER
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(ETL_NO_PROFILE_HEADER)
|
||||
#include "etl_profile.h"
|
||||
#endif
|
||||
|
||||
// Helper macro, so we don't have to use double negatives.
|
||||
// The ETL will use the STL, unless ETL_NO_STL is defined.
|
||||
|
||||
@ -1524,6 +1524,7 @@ namespace etl
|
||||
};
|
||||
#endif
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
template <typename T>
|
||||
using types_t = typename types<T>::type;
|
||||
|
||||
@ -1544,6 +1545,7 @@ namespace etl
|
||||
|
||||
template <typename T>
|
||||
using types_cpc = typename types<T>::const_pointer_const;
|
||||
#endif
|
||||
|
||||
//***************************************************************************
|
||||
/// size_of
|
||||
|
||||
@ -39,7 +39,7 @@ SOFTWARE.
|
||||
|
||||
#define ETL_VERSION_MAJOR 18
|
||||
#define ETL_VERSION_MINOR 3
|
||||
#define ETL_VERSION_PATCH 2
|
||||
#define ETL_VERSION_PATCH 3
|
||||
#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)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Embedded Template Library",
|
||||
"version": "18.3.2",
|
||||
"version": "18.3.3",
|
||||
"authors": {
|
||||
"name": "John Wellbelove",
|
||||
"email": "john.wellbelove@etlcpp.com"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name=Embedded Template Library
|
||||
version=18.3.2
|
||||
version=18.3.3
|
||||
author= John Wellbelove <john.wellbelove@etlcpp.com>
|
||||
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
|
||||
license=MIT
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
===============================================================================
|
||||
18.3.3
|
||||
C++03 compatibility fix for type_traits.h
|
||||
|
||||
===============================================================================
|
||||
18.3.2
|
||||
C++03 compatibility fix for pool.h
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user