mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
oops forgot the inline keyword (though for gcc it was implicit)
This commit is contained in:
@@ -201,12 +201,12 @@ public:
|
||||
* then this function smartly returns a const reference to \c *this.
|
||||
*/
|
||||
template<typename NewScalarType>
|
||||
typename ei_cast_return_type<Quaternion,Quaternion<NewScalarType> >::type cast() const
|
||||
inline typename ei_cast_return_type<Quaternion,Quaternion<NewScalarType> >::type cast() const
|
||||
{ return typename ei_cast_return_type<Quaternion,Quaternion<NewScalarType> >::type(*this); }
|
||||
|
||||
/** Copy constructor with scalar type conversion */
|
||||
template<typename OtherScalarType>
|
||||
explicit Quaternion(const Quaternion<OtherScalarType>& other)
|
||||
inline explicit Quaternion(const Quaternion<OtherScalarType>& other)
|
||||
{
|
||||
m_coeffs = other.coeffs().template cast<OtherScalarType>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user