Loading src/TNL/Meshes/MeshDimensionTag.h +9 −8 Original line number Diff line number Diff line Loading @@ -40,21 +40,22 @@ namespace Meshes { template< int Dimension > class MeshDimensionTag { public: static const int value = Dimension; static_assert( Dimensions >= 0, "The value of the dimensions cannot be negative." ); typedef MeshDimensionTag< Dimension - 1 > Decrement; public: static constexpr int value = Dimensions; static_assert( value >= 0, "The value of the dimensions cannot be negative." ); using Decrement = MeshDimensionsTag< Dimensions - 1 >; using Increment = MeshDimensionsTag< Dimensions + 1 >; }; template<> class MeshDimensionTag< 0 > { public: static const int value = 0; using Increment = MeshDimensionsTag< 1 >; }; } // namespace Meshes Loading Loading
src/TNL/Meshes/MeshDimensionTag.h +9 −8 Original line number Diff line number Diff line Loading @@ -40,21 +40,22 @@ namespace Meshes { template< int Dimension > class MeshDimensionTag { public: static const int value = Dimension; static_assert( Dimensions >= 0, "The value of the dimensions cannot be negative." ); typedef MeshDimensionTag< Dimension - 1 > Decrement; public: static constexpr int value = Dimensions; static_assert( value >= 0, "The value of the dimensions cannot be negative." ); using Decrement = MeshDimensionsTag< Dimensions - 1 >; using Increment = MeshDimensionsTag< Dimensions + 1 >; }; template<> class MeshDimensionTag< 0 > { public: static const int value = 0; using Increment = MeshDimensionsTag< 1 >; }; } // namespace Meshes Loading