From 43bcae54f2e7dcbbeef5ed00d7b5c499be2d6fd8 Mon Sep 17 00:00:00 2001 From: jwellbelove Date: Fri, 21 Nov 2014 17:08:09 +0000 Subject: [PATCH] Made default bool template value Default is_fundamental || is_pointer --- parameter_type.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/parameter_type.h b/parameter_type.h index ffbc00b5..29a30dec 100644 --- a/parameter_type.h +++ b/parameter_type.h @@ -29,30 +29,32 @@ SOFTWARE. #ifndef __ETL_PARAMETER__ #define __ETL_PARAMETER__ +#include "type_traits.h" + namespace etl { //************************************************************************* /// Determine how to pass parameters. //************************************************************************* - template + template ::value || is_pointer::value> struct parameter_type; //************************************************************************* /// Pass by value. //************************************************************************* - template - struct parameter_type + template + struct parameter_type { - typedef U type; + typedef T type; }; //************************************************************************* /// Pass by const reference. //************************************************************************* - template - struct parameter_type + template + struct parameter_type { - typedef const U& type; + typedef const T& type; }; }