Skip to content
Snippets Groups Projects
Commit 00c69023 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Use structs instead of class for friend declaration

parent 0ad9d513
No related branches found
No related tags found
No related merge requests found
...@@ -264,7 +264,7 @@ namespace Dune { ...@@ -264,7 +264,7 @@ namespace Dune {
template<class C, class P> template<class C, class P>
class NonoverlappingBlockPreconditioner class NonoverlappingBlockPreconditioner
: public Dune::Preconditioner<typename P::domain_type,typename P::range_type> { : 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: public:
//! \brief The domain type of the preconditioner. //! \brief The domain type of the preconditioner.
typedef typename P::domain_type domain_type; typedef typename P::domain_type domain_type;
......
...@@ -267,7 +267,7 @@ namespace Dune { ...@@ -267,7 +267,7 @@ namespace Dune {
*/ */
template<class X, class Y, class C, class T=Preconditioner<X,Y> > template<class X, class Y, class C, class T=Preconditioner<X,Y> >
class BlockPreconditioner : public 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: public:
//! \brief The domain type of the preconditioner. //! \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