Skip to content
Snippets Groups Projects
Commit d58db46d authored by Christoph Gersbacher's avatar Christoph Gersbacher
Browse files

Improve message of static assertion in DenseMatrixAssigner

Make more precise statement to the user if no template specialization
of DenseMatrixAssigner is found. Also use dune_static_assert instead of
static_assert.
parent 64df6274
Branches
Tags
No related merge requests found
......@@ -146,7 +146,7 @@ namespace Dune
{
static void apply ( M &m, const T &t )
{
static_assert( Conversion< T, M >::exists, "No specialization found" );
dune_static_assert( (Conversion< const T, const M >::exists), "No template specialization of DenseMatrixAssigner found" );
m = static_cast< const M & >( t );
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment