mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
compilation errors under GCC
This commit is contained in:
parent
d661b8e3e2
commit
cac2e9bc80
@ -96,16 +96,16 @@ namespace cv
|
||||
__CV_GPU_HOST_DEVICE__ const T* ptr(int y = 0) const { return (const T*)( (const char*)data + y * step); }
|
||||
};
|
||||
|
||||
template <bool> struct StaticCheck;
|
||||
template <> struct StaticCheck<true>{};
|
||||
|
||||
template<typename T> struct PtrElemStep_ : public PtrStep_<T>
|
||||
{
|
||||
PtrElemStep_(const DevMem2D_<T>& mem) : PtrStep_<T>(mem)
|
||||
{
|
||||
step /= elem_size;
|
||||
this->step /= PtrStep_<T>::elem_size;
|
||||
}
|
||||
private:
|
||||
template <bool> struct StaticCheck;
|
||||
template <> struct StaticCheck<true>{};
|
||||
|
||||
StaticCheck<256 % sizeof(T) == 0> ElemStepTypeCheck;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user