It can be replaced with:

    template <> CV_EXPORTS void DefaultDeleter<cv::gpu::Stream::Impl>::operator ()(cv::gpu::Stream::Impl* obj) const;
    template <> CV_EXPORTS void DefaultDeleter<cv::gpu::Event::Impl>::operator ()(cv::gpu::Event::Impl* obj) const;