From: David Wells Date: Sat, 11 Feb 2017 13:40:38 +0000 (-0500) Subject: Fix a deprecation warning in user codes. X-Git-Tag: v8.5.0-rc1~120^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3963%2Fhead;p=dealii.git Fix a deprecation warning in user codes. Since supports_distributed_data is deprecated, instantiating a BlockVector raises a deprecation warning in user codes. Fix this by simply using the type trait replacement. --- diff --git a/include/deal.II/lac/block_vector_base.h b/include/deal.II/lac/block_vector_base.h index 35fcf7cdc8..8a960a9b19 100644 --- a/include/deal.II/lac/block_vector_base.h +++ b/include/deal.II/lac/block_vector_base.h @@ -573,7 +573,7 @@ public: * @deprecated instead of using this variable, please use the type trait value * is_serial_vector< VectorType >::value */ - static const bool supports_distributed_data DEAL_II_DEPRECATED = BlockType::supports_distributed_data; + static const bool supports_distributed_data DEAL_II_DEPRECATED = !is_serial_vector::value; /** * Default constructor.