course
course copied to clipboard
报错:no suitable user-defined conversion from "CudaAllocator<int>" to "CudaAllocator<std::_Container_proxy>" exists
在08课程04_sugar\01下面生成 visual studio 2022 项目之后,运行报错如下:
“no suitable user-defined conversion from "CudaAllocator
已经修复 https://github.com/parallel101/course/blob/master/08/include/CudaAllocator.h#L28C1-L34C6
template <class U> // cihou shabi wendous
constexpr CudaAllocator(CudaAllocator<U> const &other) noexcept {
}
constexpr bool operator==(CudaAllocator<T> const &other) const {
return this == &other;
}
@archibate 小彭老师,我试验了一下,好像没有效果,仍然保一样的错。