#ifndef DEAL_II_CXX14_CONSTEXPR_BUG
// Make sure these are the only indices from which objects can be
// created.
- Assert((kind == static_cast<std::uint8_t>(-1)) || (kind < 8),
+ Assert((kind == std::numeric_limits<std::uint8_t>::max()) || (kind < 8),
ExcInternalError());
#endif
constexpr const ReferenceCell Hexahedron =
internal::make_reference_cell_from_int(7);
constexpr const ReferenceCell Invalid =
- internal::make_reference_cell_from_int(static_cast<std::uint8_t>(-1));
+ internal::make_reference_cell_from_int(
+ std::numeric_limits<std::uint8_t>::max());
/**
* Return the correct simplex reference cell type for the given dimension
}
Assert(false, (internal::NoPermutation<T>(*this, vertices_0, vertices_1)));
- return numbers::invalid_unsigned_int;
+ return std::numeric_limits<unsigned char>::max();
}
{
// Define VTK constants for linear, quadratic and
// high-order Lagrange geometrices
- enum
+ enum : unsigned int
{
VTK_VERTEX = 1,
// Linear cells
VTK_LAGRANGE_WEDGE = 73,
VTK_LAGRANGE_PYRAMID = 74,
// Invalid code
- VTK_INVALID = static_cast<unsigned int>(-1)
+ VTK_INVALID = numbers::invalid_unsigned_int
};
} // namespace VTKCellType