Added clarifying comment on definedness of const_cast

This commit is contained in:
Markus Blatt committed 2018-08-01 18:06:45 +02:00
1 parent f850f04c93
commit 8482b435eb
1 file changed
+4
+4
View File
@@ -947,6 +947,10 @@ protected:
{
if ( ordering_.empty())
{
// As d is non-const in the apply method of the
// solver casting away constness in this particular
// setting is not undefined. It is ugly though but due
// to the preconditioner interface of dune-istl.
return const_cast<Range&>(d);
}
else