Commit 4e9ae9b4 authored by Gabriele Buondonno's avatar Gabriele Buondonno
Browse files

[Frame] Explicitly define inequality operator

parent 1bc628a3
......@@ -63,7 +63,9 @@ namespace pinocchio
{}
///
/// \returns true if *this and other matches and have the same parent, name and type.
/// \brief Equality comparison operator.
///
/// \returns true if *this is equal to other.
///
/// \param[in] other The frame to which the current frame is compared.
///
......@@ -76,7 +78,16 @@ namespace pinocchio
&& placement == other.placement
&& type == other.type ;
}
///
/// \returns true if *this is NOT equal to other.
///
template<typename S2, int O2>
bool operator != (const FrameTpl<S2,O2> & other) const
{
return !(*this == other);
}
/// \returns An expression of *this with the Scalar type casted to NewScalar.
template<typename NewScalar>
FrameTpl<NewScalar,Options> cast() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment