From 6c83004785b99fa088369ee7835e913fe9403ccb Mon Sep 17 00:00:00 2001 From: Santosh Puranik Date: Tue, 24 Nov 2015 05:57:48 -0600 Subject: Some changes for the new compiler -- Compile out FFDC code that relies on std::shared_ptr and std::pair -- Define some type traits used in FAPI2 -- Remove stdio.h inclusion from plat code Change-Id: I5a9e156f654c87c54d26f2e4c99b924285cf981a Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22297 Reviewed-by: Sachin Gupta Tested-by: Jenkins Server Reviewed-by: Gregory S. Still --- include/std/type_traits | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'include') diff --git a/include/std/type_traits b/include/std/type_traits index 8498a976..39394d8d 100644 --- a/include/std/type_traits +++ b/include/std/type_traits @@ -59,5 +59,28 @@ namespace std : public integral_constant::type>::value)> { }; + /// is_same + template + struct is_same + : public false_type { }; + + template + struct is_same<_Tp, _Tp> + : public true_type { }; + + template + struct __is_pointer_helper + : public false_type { }; + + template + struct __is_pointer_helper<_Tp*> + : public true_type { }; + + /// is_pointer + template + struct is_pointer + : public integral_constant::type>::value)> + { }; } #endif -- cgit v1.2.1