Looks like you copied incorrectly :
auto mapper = vtkSmartPointer<vtkOpenGLGPUVolumeRayCastMapper>::New();