Attention une mise à jour du service Gitlab va être effectuée le mardi 30 novembre entre 17h30 et 18h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes. Cette mise à jour intermédiaire en version 14.0.12 nous permettra de rapidement pouvoir mettre à votre disposition une version plus récente.

Commit 507d927c authored by Quentin Khan's avatar Quentin Khan
Browse files

PerfTest driver: remove traits enumeration underlying bool type

This feature is not well supported by compilers. The traits values are
only used at comiple time.
parent bfaa0724
...@@ -30,10 +30,10 @@ namespace scalfmm { ...@@ -30,10 +30,10 @@ namespace scalfmm {
/// Disabled type trait specialisation /// Disabled type trait specialisation
template<class U> template<class U>
struct disabled<U, void_t<decltype(U::disabled)> > struct disabled<U, void_t<decltype(U::disabled)> >
{ enum : bool { value = U::disabled }; }; { enum { value = U::disabled }; };
/// Type trait value, true if the T is enabled /// Type trait value, true if the T is enabled
enum : bool {value = !disabled<T>::value}; enum {value = !disabled<T>::value};
}; };
/** /**
...@@ -150,20 +150,20 @@ namespace scalfmm { ...@@ -150,20 +150,20 @@ namespace scalfmm {
/// Shorthand for the tree factory type trait value /// Shorthand for the tree factory type trait value
enum : bool { has_tree_factory_v = enum { has_tree_factory_v =
has_tree_factory<tree_desc>::value }; has_tree_factory<tree_desc>::value };
/// Shorthand for the loader factory type trait value /// Shorthand for the loader factory type trait value
enum : bool { has_loader_factory_v = enum { has_loader_factory_v =
has_loader_factory<algo_desc>::value }; has_loader_factory<algo_desc>::value };
/// Shorthand for the kernel factory type trait value /// Shorthand for the kernel factory type trait value
enum : bool { has_kernel_factory_v = enum { has_kernel_factory_v =
has_kernel_factory<kernel_desc>::value }; has_kernel_factory<kernel_desc>::value };
/// Shorthand for the algorithm factory type trait value /// Shorthand for the algorithm factory type trait value
enum : bool { has_algo_factory_v = enum { has_algo_factory_v =
has_algo_factory<algo_desc>::value }; has_algo_factory<algo_desc>::value };
/** /**
...@@ -224,7 +224,7 @@ namespace scalfmm { ...@@ -224,7 +224,7 @@ namespace scalfmm {
: std::true_type {}; : std::true_type {};
/// Type trait value, true if the build expression is declared /// Type trait value, true if the build expression is declared
enum : bool {value = valid_build_expression<algo_factory>::value}; enum {value = valid_build_expression<algo_factory>::value};
}; };
/** /**
...@@ -236,10 +236,10 @@ namespace scalfmm { ...@@ -236,10 +236,10 @@ namespace scalfmm {
/// Shorthand for the build compatibility type trait value /// Shorthand for the build compatibility type trait value
enum : bool { can_build_algo_v = can_build_algo<void>::value }; enum { can_build_algo_v = can_build_algo<void>::value };
/// Type trait value, true if the algorithm & kernel seem compatible /// Type trait value, true if the algorithm & kernel seem compatible
enum : bool { enum {
value = has_tree_factory_v value = has_tree_factory_v
&& has_loader_factory_v && has_loader_factory_v
&& has_kernel_factory_v && has_kernel_factory_v
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment