Skip to content

Commit 53d44eb

Browse files
committed
Refactor SimplexMeshBoundary function signature to use trailing return type
1 parent 428cff7 commit 53d44eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/pbat/geometry/MeshBoundary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace pbat {
1212
namespace geometry {
1313

14-
std::tuple<IndexVectorX, IndexMatrixX> SimplexMeshBoundary(IndexMatrixX const& C, Index n)
14+
auto SimplexMeshBoundary(IndexMatrixX const& C, Index n) -> std::tuple<IndexVectorX, IndexMatrixX>
1515
{
1616
if (n < 0)
1717
n = C.maxCoeff() + 1;

source/pbat/geometry/MeshBoundary.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ namespace geometry {
2727
* @param n The number of vertices in the mesh. If -1, the number of vertices is computed from C.
2828
* @return A tuple containing the boundary vertices and the boundary facets
2929
*/
30-
std::tuple<IndexVectorX, IndexMatrixX>
31-
SimplexMeshBoundary(IndexMatrixX const& C, Index n = Index(-1));
30+
auto SimplexMeshBoundary(IndexMatrixX const& C, Index n = Index(-1))
31+
-> std::tuple<IndexVectorX, IndexMatrixX>;
3232

3333
} // namespace geometry
3434
} // namespace pbat

0 commit comments

Comments
 (0)