Partial fix to compiling with C++98/03 (#342)

This commit is contained in:
Bo Rydberg 2021-03-09 11:48:11 +01:00 committed by GitHub
parent 6e55cdeea8
commit b5bb408148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 4 deletions

View File

@ -36,6 +36,7 @@ SOFTWARE.
#include <stdint.h>
#include "platform.h"
#include "algorithm.h"
#include "type_traits.h"
#include "integral_limits.h"
#include "static_assert.h"

View File

@ -29,6 +29,8 @@ SOFTWARE.
#ifndef ETL_NULL_TYPE_INCLUDED
#define ETL_NULL_TYPE_INCLUDED
#include <stddef.h>
#undef ETL_FILE
#define ETL_FILE "50"

View File

@ -290,7 +290,7 @@ namespace etl
template <typename T1>
bool emplace_from_unlocked(const T1& value1)
{
return emplace_implementation(valie1);
return emplace_implementation(value1);
}
//*************************************************************************
@ -300,7 +300,7 @@ namespace etl
template <typename T1, typename T2>
bool emplace_from_unlocked(const T1& value1, const T2& value2)
{
return emplace_implementation(valie1, value2);
return emplace_implementation(value1, value2);
}
//*************************************************************************
@ -310,7 +310,7 @@ namespace etl
template <typename T1, typename T2, typename T3>
bool emplace_from_unlocked(const T1& value1, const T2& value2, const T3& value3)
{
return emplace_implementation(valie1, value2, value3);
return emplace_implementation(value1, value2, value3);
}
//*************************************************************************
@ -320,7 +320,7 @@ namespace etl
template <typename T1, typename T2, typename T3, typename T4>
bool emplace_from_unlocked(const T1& value1, const T2& value2, const T3& value3, const T4& value4)
{
return emplace_implementation(valie1, value2, value3, value4);
return emplace_implementation(value1, value2, value3, value4);
}
//*************************************************************************

View File

@ -31,8 +31,11 @@ SOFTWARE.
#ifndef ETL_RATIO_INCLUDED
#define ETL_RATIO_INCLUDED
#include <stddef.h>
#include <stdint.h>
#include "platform.h"
///\defgroup ratio ratio
///\ingroup maths

View File

@ -35,6 +35,8 @@ SOFTWARE.
#include "message.h"
#include "atomic.h"
#include "reference_counted_object.h"
#include "static_assert.h"
#include "type_traits.h"
#include "ireference_counted_message_pool.h"
namespace etl

View File

@ -83,6 +83,7 @@ namespace etl
}
};
#if ETL_CPP11_SUPPORTED
template <>
struct whitespace<char16_t>
{
@ -100,6 +101,7 @@ namespace etl
return U" \t\n\r\f\v";
}
};
#endif
#if ETL_CPP17_SUPPORTED
template <typename TChar>