From 505ce85814f9291b7d242ef57582d7b15e673f26 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 25 Oct 2008 22:41:53 +0000 Subject: [PATCH] oops forgot the inline keyword (though for gcc it was implicit) --- Eigen/src/Geometry/AngleAxis.h | 4 ++-- Eigen/src/Geometry/Hyperplane.h | 4 ++-- Eigen/src/Geometry/ParametrizedLine.h | 4 ++-- Eigen/src/Geometry/Quaternion.h | 4 ++-- Eigen/src/Geometry/Rotation2D.h | 4 ++-- Eigen/src/Geometry/Scaling.h | 4 ++-- Eigen/src/Geometry/Transform.h | 4 ++-- Eigen/src/Geometry/Translation.h | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Eigen/src/Geometry/AngleAxis.h b/Eigen/src/Geometry/AngleAxis.h index e3759c4af..85d7b69b0 100644 --- a/Eigen/src/Geometry/AngleAxis.h +++ b/Eigen/src/Geometry/AngleAxis.h @@ -139,12 +139,12 @@ public: * then this function smartly returns a const reference to \c *this. */ template - typename ei_cast_return_type >::type cast() const + inline typename ei_cast_return_type >::type cast() const { return typename ei_cast_return_type >::type(*this); } /** Copy constructor with scalar type conversion */ template - explicit AngleAxis(const AngleAxis& other) + inline explicit AngleAxis(const AngleAxis& other) { m_axis = other.axis().template cast(); m_angle = other.angle(); diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 6d2462574..d3327a418 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -244,7 +244,7 @@ public: * then this function smartly returns a const reference to \c *this. */ template - typename ei_cast_return_type >::type cast() const { return typename ei_cast_return_type - explicit Hyperplane(const Hyperplane& other) + inline explicit Hyperplane(const Hyperplane& other) { m_coeffs = other.coeffs().template cast(); } protected: diff --git a/Eigen/src/Geometry/ParametrizedLine.h b/Eigen/src/Geometry/ParametrizedLine.h index 8a1d79252..e7d336e62 100644 --- a/Eigen/src/Geometry/ParametrizedLine.h +++ b/Eigen/src/Geometry/ParametrizedLine.h @@ -107,7 +107,7 @@ public: * then this function smartly returns a const reference to \c *this. */ template - typename ei_cast_return_type >::type cast() const { return typename ei_cast_return_type - explicit ParametrizedLine(const ParametrizedLine& other) + inline explicit ParametrizedLine(const ParametrizedLine& other) { m_origin = other.origin().template cast(); m_direction = other.direction().template cast(); diff --git a/Eigen/src/Geometry/Quaternion.h b/Eigen/src/Geometry/Quaternion.h index 820d30568..688fac885 100644 --- a/Eigen/src/Geometry/Quaternion.h +++ b/Eigen/src/Geometry/Quaternion.h @@ -201,12 +201,12 @@ public: * then this function smartly returns a const reference to \c *this. */ template - typename ei_cast_return_type >::type cast() const + inline typename ei_cast_return_type >::type cast() const { return typename ei_cast_return_type >::type(*this); } /** Copy constructor with scalar type conversion */ template - explicit Quaternion(const Quaternion& other) + inline explicit Quaternion(const Quaternion& other) { m_coeffs = other.coeffs().template cast(); } diff --git a/Eigen/src/Geometry/Rotation2D.h b/Eigen/src/Geometry/Rotation2D.h index 8e8396713..8d9bb8b8f 100644 --- a/Eigen/src/Geometry/Rotation2D.h +++ b/Eigen/src/Geometry/Rotation2D.h @@ -107,12 +107,12 @@ public: * then this function smartly returns a const reference to \c *this. */ template - typename ei_cast_return_type >::type cast() const + inline typename ei_cast_return_type >::type cast() const { return typename ei_cast_return_type >::type(*this); } /** Copy constructor with scalar type conversion */ template - explicit Rotation2D(const Rotation2D& other) + inline explicit Rotation2D(const Rotation2D& other) { m_angle = other.angle(); } diff --git a/Eigen/src/Geometry/Scaling.h b/Eigen/src/Geometry/Scaling.h index dd40d2ed3..54e772e99 100644 --- a/Eigen/src/Geometry/Scaling.h +++ b/Eigen/src/Geometry/Scaling.h @@ -134,12 +134,12 @@ public: * then this function smartly returns a const reference to \c *this. */ template - typename ei_cast_return_type >::type cast() const + inline typename ei_cast_return_type >::type cast() const { return typename ei_cast_return_type >::type(*this); } /** Copy constructor with scalar type conversion */ template - explicit Scaling(const Scaling& other) + inline explicit Scaling(const Scaling& other) { m_coeffs = other.coeffs().template cast(); } }; diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h index 003f5d755..389c61f2c 100644 --- a/Eigen/src/Geometry/Transform.h +++ b/Eigen/src/Geometry/Transform.h @@ -252,12 +252,12 @@ public: * then this function smartly returns a const reference to \c *this. */ template - typename ei_cast_return_type >::type cast() const + inline typename ei_cast_return_type >::type cast() const { return typename ei_cast_return_type >::type(*this); } /** Copy constructor with scalar type conversion */ template - explicit Transform(const Transform& other) + inline explicit Transform(const Transform& other) { m_matrix = other.matrix().template cast(); } protected: diff --git a/Eigen/src/Geometry/Translation.h b/Eigen/src/Geometry/Translation.h index 5d01c3044..c2e626112 100644 --- a/Eigen/src/Geometry/Translation.h +++ b/Eigen/src/Geometry/Translation.h @@ -137,12 +137,12 @@ public: * then this function smartly returns a const reference to \c *this. */ template - typename ei_cast_return_type >::type cast() const + inline typename ei_cast_return_type >::type cast() const { return typename ei_cast_return_type >::type(*this); } /** Copy constructor with scalar type conversion */ template - explicit Translation(const Translation& other) + inline explicit Translation(const Translation& other) { m_coeffs = other.vector().template cast(); } };