diff options
author | Santosh Puranik <santosh.puranik@in.ibm.com> | 2015-11-24 05:57:48 -0600 |
---|---|---|
committer | Gregory S. Still <stillgs@us.ibm.com> | 2015-12-07 07:30:04 -0600 |
commit | 6c83004785b99fa088369ee7835e913fe9403ccb (patch) | |
tree | 777f35fe0d49046859bd1a833f6e037edad7680d /include | |
parent | 96658ed12b4187865f353248916101e1aaf814f8 (diff) | |
download | talos-sbe-6c83004785b99fa088369ee7835e913fe9403ccb.tar.gz talos-sbe-6c83004785b99fa088369ee7835e913fe9403ccb.zip |
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 <sgupta2m@in.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/std/type_traits | 23 |
1 files changed, 23 insertions, 0 deletions
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<bool, (_is_integral_type<typename remove_cv<_Tp>::type>::value)> { }; + /// is_same + template<typename, typename> + struct is_same + : public false_type { }; + + template<typename _Tp> + struct is_same<_Tp, _Tp> + : public true_type { }; + + template<typename> + struct __is_pointer_helper + : public false_type { }; + + template<typename _Tp> + struct __is_pointer_helper<_Tp*> + : public true_type { }; + + /// is_pointer + template<typename _Tp> + struct is_pointer + : public integral_constant<bool, (__is_pointer_helper<typename + remove_cv<_Tp>::type>::value)> + { }; } #endif |