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; }; }