mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Generator was not updated to match the intended generated file.
This commit is contained in:
parent
a6f3bcd17e
commit
585a65453e
@ -428,8 +428,10 @@ namespace etl
|
||||
|
||||
/// is_base_of
|
||||
///\ingroup type_traits
|
||||
template<class TBase, class TDerived>
|
||||
struct is_base_of
|
||||
template<typename TBase,
|
||||
typename TDerived,
|
||||
const bool IsFundamental = (etl::is_fundamental<TBase>::value || etl::is_fundamental<TDerived>::value)>
|
||||
struct is_base_of
|
||||
{
|
||||
private:
|
||||
|
||||
@ -444,6 +446,13 @@ namespace etl
|
||||
static const bool value = (sizeof(check((internal*)0)) == sizeof(TBase*));
|
||||
};
|
||||
|
||||
// For when TBase or TDerived is a fundamental type.
|
||||
template<typename TBase, typename TDerived>
|
||||
struct is_base_of<TBase, TDerived, true>
|
||||
{
|
||||
static const bool value = false;
|
||||
};
|
||||
|
||||
/// Alignment templates.
|
||||
/// These require compiler specific intrinsics.
|
||||
///\ingroup type_traits
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user