Skip to content

Commit

Permalink
Fix build of constexpr expressions with points
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Nov 5, 2023
1 parent d4b407c commit 2cbd5dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/math/include/mrpt/math/TPoint2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ namespace mrpt::math
template <typename T>
struct TPoint2D_data
{
TPoint2D_data() = default;
TPoint2D_data(T X, T Y) : x(X), y(Y) {}
constexpr TPoint2D_data() = default;
constexpr TPoint2D_data(T X, T Y) : x(X), y(Y) {}

/** X,Y coordinates */
T x, y;
Expand Down
4 changes: 2 additions & 2 deletions libs/math/include/mrpt/math/TPoint3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ namespace mrpt::math
template <typename T>
struct TPoint3D_data
{
TPoint3D_data() = default;
TPoint3D_data(T X, T Y, T Z) : x(X), y(Y), z(Z) {}
constexpr TPoint3D_data() = default;
constexpr TPoint3D_data(T X, T Y, T Z) : x(X), y(Y), z(Z) {}

/** X,Y,Z coordinates */
T x, y, z;
Expand Down

0 comments on commit 2cbd5dc

Please sign in to comment.