Skip to content
Snippets Groups Projects
Commit 17eb3b67 authored by Andreas Dedner's avatar Andreas Dedner
Browse files

Merge branch 'feature/fix-class-struct-warning' into 'master'

Use structs instead of class for friend declaration

See merge request core/dune-istl!163
parents 0ad9d513 00c69023
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,7 @@ namespace Dune {
template<class C, class P>
class NonoverlappingBlockPreconditioner
: public Dune::Preconditioner<typename P::domain_type,typename P::range_type> {
friend class Amg::ConstructionTraits<NonoverlappingBlockPreconditioner<C,P> >;
friend struct Amg::ConstructionTraits<NonoverlappingBlockPreconditioner<C,P> >;
public:
//! \brief The domain type of the preconditioner.
typedef typename P::domain_type domain_type;
......
......@@ -267,7 +267,7 @@ namespace Dune {
*/
template<class X, class Y, class C, class T=Preconditioner<X,Y> >
class BlockPreconditioner : public Preconditioner<X,Y> {
friend class Amg::ConstructionTraits<BlockPreconditioner<X,Y,C,T> >;
friend struct Amg::ConstructionTraits<BlockPreconditioner<X,Y,C,T> >;
public:
//! \brief The domain type of the preconditioner.
//!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment