title: Why won't OpenCV compile in NVCC?
body: <p>I am trying to integrate CUDA and openCV in a project.  Problem is openCV won't compile when NVCC is used, while a normal c++ project compiles just fine.  This seems odd to me, as I thought NVCC passed all host code to the c/c++ compiler, in this case the visual studio compiler.</p>
  
  <p>The errors I get are?</p>
  
  <p>c:\opencv2.0\include\opencv\cxoperations.hpp(1137): error: no operator "=" matches these operands
              operand types are: const cv::Range = cv::Range</p>
  
  <p>c:\opencv2.0\include\opencv\cxoperations.hpp(2469): error: more than one instance of overloaded function "std::abs" matches the argument list:
              function "abs(long double)"
              function "abs(float)"
              function "abs(double)"
              function "abs(long)"
              function "abs(int)"
              argument types are: (ptrdiff_t)</p>
  
  <p>So my question is why the difference considering the same compiler (should be) is being used and secondly how I could remedy this.</p>