Remove SFINAE from KarcherMean so we can also use it for Rot2

release/4.3a0
Varun Agrawal 2022-02-06 12:14:30 -05:00
parent b60ca0f5b3
commit cc8d80fb7e
1 changed files with 1 additions and 2 deletions

View File

@ -40,8 +40,7 @@ T FindKarcherMeanImpl(const vector<T, ALLOC>& rotations) {
return result.at<T>(kKey);
}
template <class T,
typename = typename std::enable_if< std::is_same<gtsam::Rot3, T>::value >::type >
template <class T>
T FindKarcherMean(const std::vector<T>& rotations) {
return FindKarcherMeanImpl(rotations);
}