Skip to content
Snippets Groups Projects
Verified Commit 7d4ca706 authored by Nils-Arne Dreier's avatar Nils-Arne Dreier
Browse files

add static assert in mpifuturetest

parent 669a0a6b
Branches
Tags
1 merge request!894fix MPIFuture::get_mpidata
......@@ -6,14 +6,17 @@
#include <dune/common/dynvector.hh>
namespace Dune {
template<>
struct MPIData<const int&>{
template<class Dummy>
struct MPIData<const int&, Dummy>
{
static_assert(Dune::AlwaysFalse<Dummy>::value, "MPIData of reference type should not be used!");
// MPIData of reference type should not be used!
// This struct should never be used it just
// exists to generate a compiler error
};
}
int main(int argc, char** argv){
auto& mpihelper = Dune::MPIHelper::instance(argc, argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment