Skip to content

Commit

Permalink
separate trait
Browse files Browse the repository at this point in the history
  • Loading branch information
pettni committed Dec 24, 2020
1 parent b297d6f commit 2730a0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/manif/impl/bundle/BundleTangent.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ struct traits<BundleTangent<_Scalar, _T...>>
using LenAlg = intseq<_T<_Scalar>::Tangent::LieAlg::RowsAtCompileTime ...>;
using BegAlg = bundle::intseq_psum_t<LenAlg>;

using _tuple_t = std::tuple<typename _T<_Scalar>::Tangent ...>;

template<size_t _Idx>
using PartType = typename bundle::bundle_element<
_Idx, typename _T<_Scalar>::Tangent ...
>::type;
using PartType = typename std::tuple_element<_Idx, _tuple_t>::type;

// Regular traits
using Scalar = _Scalar;
Expand Down
4 changes: 2 additions & 2 deletions include/manif/impl/bundle/Bundle_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ using intseq_psum_t = typename intseq_psum<intseq<>, _Seq, 0>::type;
/**
* @brief extract element of typelist
*/
template<int Idx, class ... T>
template<std::size_t Idx, class ... T>
struct bundle_element;

// recursive case
template<int Idx, class Head, class... Tail>
template<std::size_t Idx, class Head, class... Tail>
struct bundle_element<Idx, Head, Tail...>
: public bundle_element<Idx-1, Tail...> { };

Expand Down

0 comments on commit 2730a0c

Please sign in to comment.