summaryrefslogtreecommitdiffstats
path: root/src/include/util
diff options
context:
space:
mode:
authorAndre Marin <aamarin@us.ibm.com>2019-03-01 00:28:51 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-03-15 14:34:14 -0500
commit9e1906f95ba3da384eff12814f53ade26528cb0b (patch)
tree30b4bd7d53dba261e3d7e184e751a228bc9df0b9 /src/include/util
parentc2c08ea15af6719437d88e2580028ffde46f58be (diff)
downloadtalos-hostboot-9e1906f95ba3da384eff12814f53ade26528cb0b.tar.gz
talos-hostboot-9e1906f95ba3da384eff12814f53ade26528cb0b.zip
Add std::remove_all_extends to HB STL library
Change-Id: I6fa0e9930a9d8340416ab3c775238f60931882d8 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72688 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Chen Du <duchen@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/util')
-rw-r--r--src/include/util/impl/type_remove.H7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/util/impl/type_remove.H b/src/include/util/impl/type_remove.H
index 4b33f2e36..ba6659a77 100644
--- a/src/include/util/impl/type_remove.H
+++ b/src/include/util/impl/type_remove.H
@@ -25,6 +25,8 @@
#ifndef __UTIL_IMPL_TYPE_REMOVE_H
#define __UTIL_IMPL_TYPE_REMOVE_H
+#include <stdint.h>
+
namespace std
{
template <typename T> struct remove_const { typedef T type; };
@@ -52,6 +54,11 @@ namespace std
template <typename T> struct remove_pointer<T* const volatile>
{ typedef T type; };
+ template<class T> struct remove_all_extents { typedef T type;};
+ template<class T> struct remove_all_extents<T[]>
+ { typedef typename remove_all_extents<T>::type type; };
+ template<class T, size_t N> struct remove_all_extents<T[N]>
+ { typedef typename remove_all_extents<T>::type type; };
}
#endif
OpenPOWER on IntegriCloud