From: Bruno Turcksin Date: Mon, 9 Jul 2018 18:17:25 +0000 (+0000) Subject: Use std::is_same instead of typeid in static_cast X-Git-Tag: v9.1.0-rc1~933^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16f8276dd04c394048788ede6af01c3e8ab73638;p=dealii.git Use std::is_same instead of typeid in static_cast --- diff --git a/include/deal.II/lac/trilinos_block_sparse_matrix.h b/include/deal.II/lac/trilinos_block_sparse_matrix.h index 5babf1cd79..f4e33c4d1f 100644 --- a/include/deal.II/lac/trilinos_block_sparse_matrix.h +++ b/include/deal.II/lac/trilinos_block_sparse_matrix.h @@ -640,8 +640,9 @@ namespace TrilinosWrappers TrilinosBlockPayload(const Args &...) { static_assert( - typeid(PayloadBlockType) == - typeid(internal::LinearOperatorImplementation::TrilinosPayload), + std::is_same< + PayloadBlockType, + internal::LinearOperatorImplementation::TrilinosPayload>::value, "TrilinosBlockPayload can only accept a payload of type TrilinosPayload."); } };