fix ambiguous template variadic variable issue
fix fix ambiguous template variadic variable issue on non-gcc compilers https://stackoverflow.com/questions/56943558/c-partial-template-argument-deduction-for-function-with-variadic-pack-producesrelease/4.3a0
parent
a41b4e02e5
commit
91b6625405
|
@ -153,7 +153,7 @@ class CameraSet : public std::vector<CAMERA, Eigen::aligned_allocator<CAMERA>> {
|
|||
* full matrices and vectors and pass it to the pointer
|
||||
* 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,
|
||||
OptArgs&... args) const {
|
||||
// pass it to the pointer version of the function
|
||||
|
|
Loading…
Reference in New Issue