Skip to content
Snippets Groups Projects
Commit 68ec92cd authored by Christian Engwer's avatar Christian Engwer
Browse files

Merge branch 'feature/fix-cmake-magic-for-category-interface' into 'master'

[dynamic polymorphism] use #if instead of #ifdef for the guard

See merge request !95
parents a4e028aa d4ceb72f
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ namespace Dune {
//! Category of the linear operator (see SolverCategory::Category)
virtual SolverCategory::Category category() const
#ifdef DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
#if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
{
DUNE_THROW(Dune::Exception,"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
};
......
......@@ -77,7 +77,7 @@ namespace Dune {
//! Category of the preconditioner (see SolverCategory::Category)
virtual SolverCategory::Category category() const
#ifdef DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
#if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
{
DUNE_THROW(Dune::Exception,"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
}
......
......@@ -63,9 +63,13 @@ namespace Dune {
//! Category of the scalar product (see SolverCategory::Category)
virtual SolverCategory::Category category() const
#if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
{
DUNE_THROW(Dune::Exception,"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
}
#else
= 0;
#endif
//! every abstract base class has a virtual destructor
virtual ~ScalarProduct () {}
......
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