diff --git a/core/templates/command_queue_mt.h b/core/templates/command_queue_mt.h
index a4ac338bed6..0c86bdb7621 100644
--- a/core/templates/command_queue_mt.h
+++ b/core/templates/command_queue_mt.h
@@ -208,7 +208,7 @@
#define ARG(N) p##N
#define PARAM(N) P##N p##N
#define TYPE_PARAM(N) typename P##N
-#define PARAM_DECL(N) typename GetSimpleTypeT
::type_t p##N
+#define PARAM_DECL(N) GetSimpleTypeT
p##N
#define DECL_CMD(N) \
template \
diff --git a/core/templates/simple_type.h b/core/templates/simple_type.h
index b2ae0110e25..197115ddb90 100644
--- a/core/templates/simple_type.h
+++ b/core/templates/simple_type.h
@@ -31,26 +31,9 @@
#ifndef SIMPLE_TYPE_H
#define SIMPLE_TYPE_H
-/* Batch of specializations to obtain the actual simple type */
+#include
template
-struct GetSimpleTypeT {
- typedef T type_t;
-};
-
-template
-struct GetSimpleTypeT {
- typedef T type_t;
-};
-
-template
-struct GetSimpleTypeT {
- typedef T type_t;
-};
-
-template
-struct GetSimpleTypeT {
- typedef T type_t;
-};
+using GetSimpleTypeT = typename std::remove_cv_t>;
#endif // SIMPLE_TYPE_H
diff --git a/core/variant/binder_common.h b/core/variant/binder_common.h
index 0fe4518b0f0..61b90e2a265 100644
--- a/core/variant/binder_common.h
+++ b/core/variant/binder_common.h
@@ -362,42 +362,42 @@ void call_with_ptr_args_static_method_helper(void (*p_method)(P...), const void
template
void call_with_validated_variant_args_helper(T *p_instance, void (T::*p_method)(P...), const Variant **p_args, IndexSequence) {
- (p_instance->*p_method)((VariantInternalAccessor::type_t>::get(p_args[Is]))...);
+ (p_instance->*p_method)((VariantInternalAccessor>::get(p_args[Is]))...);
}
template
void call_with_validated_variant_argsc_helper(T *p_instance, void (T::*p_method)(P...) const, const Variant **p_args, IndexSequence) {
- (p_instance->*p_method)((VariantInternalAccessor::type_t>::get(p_args[Is]))...);
+ (p_instance->*p_method)((VariantInternalAccessor>::get(p_args[Is]))...);
}
template
void call_with_validated_variant_args_ret_helper(T *p_instance, R (T::*p_method)(P...), const Variant **p_args, Variant *r_ret, IndexSequence) {
- VariantInternalAccessor::type_t>::set(r_ret, (p_instance->*p_method)((VariantInternalAccessor::type_t>::get(p_args[Is]))...));
+ VariantInternalAccessor>::set(r_ret, (p_instance->*p_method)((VariantInternalAccessor>::get(p_args[Is]))...));
}
template
void call_with_validated_variant_args_retc_helper(T *p_instance, R (T::*p_method)(P...) const, const Variant **p_args, Variant *r_ret, IndexSequence) {
- VariantInternalAccessor::type_t>::set(r_ret, (p_instance->*p_method)((VariantInternalAccessor::type_t>::get(p_args[Is]))...));
+ VariantInternalAccessor>::set(r_ret, (p_instance->*p_method)((VariantInternalAccessor>::get(p_args[Is]))...));
}
template
void call_with_validated_variant_args_static_retc_helper(T *p_instance, R (*p_method)(T *, P...), const Variant **p_args, Variant *r_ret, IndexSequence) {
- VariantInternalAccessor::type_t>::set(r_ret, p_method(p_instance, (VariantInternalAccessor::type_t>::get(p_args[Is]))...));
+ VariantInternalAccessor>::set(r_ret, p_method(p_instance, (VariantInternalAccessor>::get(p_args[Is]))...));
}
template
void call_with_validated_variant_args_static_helper(T *p_instance, void (*p_method)(T *, P...), const Variant **p_args, IndexSequence) {
- p_method(p_instance, (VariantInternalAccessor::type_t>::get(p_args[Is]))...);
+ p_method(p_instance, (VariantInternalAccessor>::get(p_args[Is]))...);
}
template
void call_with_validated_variant_args_static_method_ret_helper(R (*p_method)(P...), const Variant **p_args, Variant *r_ret, IndexSequence) {
- VariantInternalAccessor::type_t>::set(r_ret, p_method((VariantInternalAccessor::type_t>::get(p_args[Is]))...));
+ VariantInternalAccessor>::set(r_ret, p_method((VariantInternalAccessor>::get(p_args[Is]))...));
}
template
void call_with_validated_variant_args_static_method_helper(void (*p_method)(P...), const Variant **p_args, IndexSequence) {
- p_method((VariantInternalAccessor::type_t>::get(p_args[Is]))...);
+ p_method((VariantInternalAccessor>::get(p_args[Is]))...);
}
template
diff --git a/core/variant/variant_internal.h b/core/variant/variant_internal.h
index dbd4a6a7ad9..337770cf546 100644
--- a/core/variant/variant_internal.h
+++ b/core/variant/variant_internal.h
@@ -1511,7 +1511,7 @@ struct VariantTypeChanger {
template
struct VariantTypeAdjust {
_FORCE_INLINE_ static void adjust(Variant *r_ret) {
- VariantTypeChanger::type_t>::change(r_ret);
+ VariantTypeChanger>::change(r_ret);
}
};