Verified Commit d8cc8f0b authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix warning with C++17

parent 37e685a6
......@@ -43,6 +43,12 @@ namespace pinocchio
: Base(lg_variant)
{}
LieGroupGenericTpl & operator=(const LieGroupGenericTpl & other)
{
static_cast<Base&>(*this) = other.toVariant();
return *this;
}
const LieGroupVariant & toVariant() const
{ return static_cast<const LieGroupVariant &>(*this); }
......
Markdown is supported
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