Commit ddfc8563 authored by Timo Koch's avatar Timo Koch
Browse files

[md][traits] Use std::conjunction

parent 2346e458
......@@ -49,12 +49,7 @@ namespace Detail {
template<class Scalar, class... JacobianBlocks>
class createMultiTypeBlockMatrixType
{
//! TODO: replace by std::conjuction in C++17
template<bool...> struct boolPack;
template<bool... bools>
using all_true = std::is_same<boolPack<bools..., true>, boolPack<true, bools...>>;
static_assert(all_true<isBCRSMatrix<JacobianBlocks>::value...>::value, "Jacobian blocks have to be BCRSMatrices!");
static_assert(std::conjunction_v<isBCRSMatrix<JacobianBlocks>...>, "Jacobian blocks have to be BCRSMatrices!");
template<std::size_t id>
using JacobianDiagBlock = typename std::tuple_element_t<id, std::tuple<JacobianBlocks...>>;
......
Supports Markdown
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