mirror of https://github.com/CGAL/cgal
Merge pull request #6344 from sloriot/CGAL-static_constexpr
Add missing static keyword
This commit is contained in:
commit
ba0053461f
|
|
@ -62,7 +62,7 @@ intersection(const typename K::Iso_cuboid_3& cub,
|
|||
} };
|
||||
|
||||
// description of faces of the bbox
|
||||
constexpr std::array<int, 24> face_indices
|
||||
static constexpr std::array<int, 24> face_indices
|
||||
{ { 0, 1, 2, 3,
|
||||
2, 1, 5, 6,
|
||||
3, 2, 6, 7,
|
||||
|
|
@ -70,7 +70,7 @@ intersection(const typename K::Iso_cuboid_3& cub,
|
|||
4, 0, 3, 7,
|
||||
6, 5, 4, 7 } };
|
||||
|
||||
constexpr std::array<int, 24> edge_indices
|
||||
static constexpr std::array<int, 24> edge_indices
|
||||
{ { 0, 1, 2, 3,
|
||||
1, 4, 5, 6,
|
||||
2, 6, 7, 8,
|
||||
|
|
|
|||
|
|
@ -52,13 +52,13 @@ intersection(const typename K::Tetrahedron_3& tet,
|
|||
} };
|
||||
|
||||
// description of faces of the bbox
|
||||
constexpr std::array<int, 12> face_indices
|
||||
static constexpr std::array<int, 12> face_indices
|
||||
{ { 0, 1, 2,
|
||||
0, 1, 3,
|
||||
1, 2, 3,
|
||||
2, 0, 3 } };
|
||||
|
||||
constexpr std::array<int, 12> edge_indices
|
||||
static constexpr std::array<int, 12> edge_indices
|
||||
{ { 0, 1, 2,
|
||||
0, 3, 5,
|
||||
1, 4, 3,
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ clip_to_bbox(const Plane_3& plane,
|
|||
}};
|
||||
|
||||
// description of faces of the bbox
|
||||
constexpr std::array<int, 24> face_indices
|
||||
static constexpr std::array<int, 24> face_indices
|
||||
{ { 0, 1, 2, 3,
|
||||
2, 1, 5, 6,
|
||||
3, 2, 6, 7,
|
||||
|
|
@ -95,7 +95,7 @@ clip_to_bbox(const Plane_3& plane,
|
|||
4, 0, 3, 7,
|
||||
6, 5, 4, 7 } };
|
||||
|
||||
constexpr std::array<int, 24> edge_indices
|
||||
static constexpr std::array<int, 24> edge_indices
|
||||
{ { 0, 1, 2, 3,
|
||||
1, 4, 5, 6,
|
||||
2, 6, 7, 8,
|
||||
|
|
|
|||
Loading…
Reference in New Issue