Merge pull request #1419 from ShuangLiu1992/patch-1

release/4.3a0
Frank Dellaert 2023-01-27 17:23:11 -08:00 committed by GitHub
commit 7bf72c391b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ class CameraSet : public std::vector<CAMERA, Eigen::aligned_allocator<CAMERA>> {
* full matrices and vectors and pass it to the pointer * full matrices and vectors and pass it to the pointer
* version of the function * version of the function
*/ */
template <class POINT, class... OptArgs> template <class POINT, class... OptArgs, typename = std::enable_if_t<sizeof...(OptArgs)!=0>>
Vector reprojectionError(const POINT& point, const ZVector& measured, Vector reprojectionError(const POINT& point, const ZVector& measured,
OptArgs&... args) const { OptArgs&... args) const {
// pass it to the pointer version of the function // pass it to the pointer version of the function

View File

@ -243,7 +243,7 @@ protected:
* to the matrices and vectors that will be used to store the results instead * to the matrices and vectors that will be used to store the results instead
* of pointers. * of pointers.
*/ */
template<class POINT, class ...OptArgs> template<class POINT, class ...OptArgs, typename = std::enable_if_t<sizeof...(OptArgs)!=0>>
Vector unwhitenedError( Vector unwhitenedError(
const Cameras& cameras, const POINT& point, const Cameras& cameras, const POINT& point,
OptArgs&&... optArgs) const { OptArgs&&... optArgs) const {