Skip to content
Snippets Groups Projects

Get rid of deprecation warning for Point

Merged Christoph Grüninger requested to merge feature/suppress-point-deprecation into master
1 file
+ 5
2
Compare changes
  • Side-by-side
  • Inline
@@ -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 >
Loading