X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Finclude%2FOCUtilities.h;h=1c17c100d9487f8eff4127246557820270846e18;hb=390866079e285d2c74918432c0d597d5da52f8a0;hp=87bdf355de5af8e0cb3ffdfc62e97bfba3b982fa;hpb=3e9402ad71cb3e93266a77796f44d17bab9853fd;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/include/OCUtilities.h b/resource/include/OCUtilities.h index 87bdf35..1c17c10 100644 --- a/resource/include/OCUtilities.h +++ b/resource/include/OCUtilities.h @@ -18,8 +18,8 @@ // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -#ifndef _INTEL_OCUTILITIES_H_ -#define _INTEL_OCUTILITIES_H_ +#ifndef OC_UTILITIES_H_ +#define OC_UTILITIES_H_ #include #include @@ -106,12 +106,42 @@ namespace OC template struct is_vector>::value + std::is_same >::value >::type > { constexpr static bool value = true; }; + + // type trait to remove the first type from a parameter-packed list + template + struct remove_first; + + // specialization that does all the work + template