From 9c0f422d40cf1e53329f5dbfc741042b59d04be0 Mon Sep 17 00:00:00 2001 From: AndreaRigoni Date: Fri, 7 Aug 2015 11:13:44 +0200 Subject: [PATCH] add null class for template specialization --- src/Core/ClassComposite.h | 2 +- src/Core/ClassCompound.h | 3 ++- src/Core/Types.h | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Core/ClassComposite.h b/src/Core/ClassComposite.h index 4798361..8f1cad6 100644 --- a/src/Core/ClassComposite.h +++ b/src/Core/ClassComposite.h @@ -122,7 +122,7 @@ struct ClassComposite { } // detail -struct Null {}; +//struct Null {}; template < typename T0 = Null, typename T1 = Null, typename T2 = Null, diff --git a/src/Core/ClassCompound.h b/src/Core/ClassCompound.h index 074f191..bcf96e6 100644 --- a/src/Core/ClassCompound.h +++ b/src/Core/ClassCompound.h @@ -4,6 +4,7 @@ #include "boost/type_traits.hpp" +#include "Core/Types.h" #include "Core/Mpl.h" //////////////////////////////////////////////////////////////////////////////// @@ -83,7 +84,7 @@ struct ClassCompound : ULIB_MPL_INHERIT_SEQ(_Seq) { //////////////////////////////////////////////////////////////////////////////// // COMPOUND SPECIALIZATIONS // -struct Null {}; +//struct Null {}; template < class T0 = Null, class T1 = Null, class T2 = Null, diff --git a/src/Core/Types.h b/src/Core/Types.h index 89768f8..f90a11e 100644 --- a/src/Core/Types.h +++ b/src/Core/Types.h @@ -322,7 +322,8 @@ struct PrintTypeId { struct Access {}; template struct Access2 {}; - +// NULL CLASS // +struct Null {}; } // uLib