]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use std::is_same instead of typeid in static_cast 6903/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 9 Jul 2018 18:17:25 +0000 (18:17 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 9 Jul 2018 18:17:25 +0000 (18:17 +0000)
include/deal.II/lac/trilinos_block_sparse_matrix.h

index 5babf1cd791aeb3f5e61ba3bba4c11bda0a27de0..f4e33c4d1f492a1ef7ba1663985fed70a4a86220 100644 (file)
@@ -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.");
         }
       };

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.