template <typename T>
struct is_list_compatible
{
- static constexpr const bool value =
+ static constexpr bool value =
internal::is_list_compatible<std::decay_t<T>>::value;
};
template <typename T>
struct is_map_compatible
{
- static constexpr const bool value =
+ static constexpr bool value =
internal::is_map_compatible<std::decay_t<T>>::value;
};
*/
namespace ReferenceCells
{
- constexpr const ReferenceCell Vertex =
- internal::make_reference_cell_from_int(0);
- constexpr const ReferenceCell Line =
- internal::make_reference_cell_from_int(1);
- constexpr const ReferenceCell Triangle =
- internal::make_reference_cell_from_int(2);
- constexpr const ReferenceCell Quadrilateral =
+ constexpr ReferenceCell Vertex = internal::make_reference_cell_from_int(0);
+ constexpr ReferenceCell Line = internal::make_reference_cell_from_int(1);
+ constexpr ReferenceCell Triangle = internal::make_reference_cell_from_int(2);
+ constexpr ReferenceCell Quadrilateral =
internal::make_reference_cell_from_int(3);
- constexpr const ReferenceCell Tetrahedron =
+ constexpr ReferenceCell Tetrahedron =
internal::make_reference_cell_from_int(4);
- constexpr const ReferenceCell Pyramid =
- internal::make_reference_cell_from_int(5);
- constexpr const ReferenceCell Wedge =
- internal::make_reference_cell_from_int(6);
- constexpr const ReferenceCell Hexahedron =
+ constexpr ReferenceCell Pyramid = internal::make_reference_cell_from_int(5);
+ constexpr ReferenceCell Wedge = internal::make_reference_cell_from_int(6);
+ constexpr ReferenceCell Hexahedron =
internal::make_reference_cell_from_int(7);
- constexpr const ReferenceCell Invalid =
- internal::make_reference_cell_from_int(
- std::numeric_limits<std::uint8_t>::max());
+ constexpr ReferenceCell Invalid = internal::make_reference_cell_from_int(
+ std::numeric_limits<std::uint8_t>::max());
/**
* Return the correct simplex reference cell type for the given dimension
{
// We permit different numbers of matrices, vectors and DoF index vectors.
// So we have to be a bit permissive here.
- constexpr const int max_index =
- std::max({n_matrices, n_vectors, n_dof_indices});
+ constexpr int max_index = std::max({n_matrices, n_vectors, n_dof_indices});
(void)max_index;
Assert(index < max_index, ExcIndexRange(index, 0, max_index));