Skip to content

Commit fefcfa5

Browse files
committed
_v
1 parent 71fca0b commit fefcfa5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/queryosity/interface/dataflow.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -335,17 +335,17 @@ queryosity::dataflow::dataflow(Kwd1 &&kwarg1, Kwd2 &&kwarg2, Kwd3 &&kwarg3)
335335
}
336336

337337
template <typename Kwd> void queryosity::dataflow::accept_kwarg(Kwd &&kwarg) {
338-
constexpr bool is_mt = std::is_same_v<Kwd, dataset::processor>;
339-
constexpr bool is_weight = std::is_same_v<Kwd, dataset::weight>;
340-
constexpr bool is_nrows = std::is_same_v<Kwd, dataset::head>;
341-
if constexpr (is_mt) {
338+
constexpr bool is_mt_v = std::is_same_v<Kwd, dataset::processor>;
339+
constexpr bool is_weight_v = std::is_same_v<Kwd, dataset::weight>;
340+
constexpr bool is_nrows_v = std::is_same_v<Kwd, dataset::head>;
341+
if constexpr (is_mt_v) {
342342
m_processor = std::move(kwarg);
343-
} else if (is_weight) {
343+
} else if (is_weight_v) {
344344
m_weight = kwarg;
345-
} else if (is_nrows) {
345+
} else if (is_nrows_v) {
346346
m_nrows = kwarg;
347347
} else {
348-
static_assert(is_mt || is_weight || is_nrows,
348+
static_assert(is_mt_v || is_weight_v || is_nrows_v,
349349
"unrecognized keyword argument");
350350
}
351351
}

0 commit comments

Comments
 (0)