Skip to content

Commit b70a0f9

Browse files
committed
Fix build warnings in gcc 9.2.1
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent 3053a12 commit b70a0f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

orocos_kdl/src/frames.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,9 @@ class Rotation
310310
double Xy,double Yy,double Zy,
311311
double Xz,double Yz,double Zz);
312312
inline Rotation(const Vector& x,const Vector& y,const Vector& z);
313-
// default copy constructor is sufficient
314313

314+
// default copy constructor is sufficient
315+
constexpr Rotation(const Rotation&) = default;
315316

316317
inline Rotation& operator=(const Rotation& arg);
317318

@@ -1060,6 +1061,9 @@ class Rotation2
10601061

10611062
Rotation2(double ca,double sa):s(sa),c(ca){}
10621063

1064+
// default copy constructor is sufficient
1065+
constexpr Rotation2(const Rotation2&) = default;
1066+
10631067
inline Rotation2& operator=(const Rotation2& arg);
10641068
inline Vector2 operator*(const Vector2& v) const;
10651069
//! Access to elements 0..1,0..1, bounds are checked when NDEBUG is not set

0 commit comments

Comments
 (0)