@@ -44,7 +44,7 @@ class calc_if_
4444 const std::string& col_index_name,
4545 const bool view_handled,
4646 const std::string& var_name_arg) const {
47- if (Do_Calculate) {
47+ if constexpr (Do_Calculate) {
4848 var_name_ = var_name_arg;
4949 }
5050 return {};
@@ -70,7 +70,7 @@ class calc_if_
7070 std::unordered_map<const void *, const char *>& generated_all,
7171 name_generator& ng, const std::string& row_index_name,
7272 const std::string& col_index_name, const T_result& result) const {
73- if (Do_Calculate) {
73+ if constexpr (Do_Calculate) {
7474 return this ->template get_arg <0 >().get_whole_kernel_parts (
7575 generated, generated_all, ng, row_index_name, col_index_name, result);
7676 } else {
@@ -92,7 +92,7 @@ class calc_if_
9292 std::unordered_map<const void *, const char *>& generated,
9393 std::unordered_map<const void *, const char *>& generated_all,
9494 cl::Kernel& kernel, int & arg_num) const {
95- if (Do_Calculate) {
95+ if constexpr (Do_Calculate) {
9696 this ->template get_arg <0 >().set_args (generated, generated_all, kernel,
9797 arg_num);
9898 }
0 commit comments