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

Merge branch 'feature/suppress-point-deprecation' into 'master'

Get rid of deprecation warning for Point

Closes #27

See merge request core/dune-geometry!178
parents fc66297f ad5088fe
No related branches found
No related tags found
1 merge request!178Get rid of deprecation warning for Point
Pipeline #37807 passed
......@@ -9,7 +9,8 @@
// Basic Topology Types
// --------------------
struct [[deprecated("Use GeometryTypes::vertex instead.")]] Point
// PointDeprecationHelper can be used to prevent a deprecation warning for Point
struct PointDeprecationHelper
{
static const unsigned int dimension = 0;
static const unsigned int numCorners = 1;
......@@ -19,6 +20,8 @@
static std::string name () { return "p"; }
};
using Point [[deprecated("Use GeometryTypes::vertex instead.")]] = PointDeprecationHelper;
template< class BaseTopology >
struct [[deprecated("Use GeometryTypes::prismaticExtension(GeometryType gt) instead.")]] Prism
......@@ -139,7 +142,7 @@
// IfTopology
// ----------
template< template< class > class Operation, int dim, class Topology = Point >
template< template< class > class Operation, int dim, class Topology = PointDeprecationHelper >
struct [[deprecated("Use IfGeometryType instead.")]] IfTopology
{
template< class... Args >
......
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