Questions tagged «nvcc»

3
如何防止C ++猜测第二个模板参数?
我正在使用C ++库( strf),该某个位置具有以下代码: namespace strf { template <typename ForwardIt> inline auto range(ForwardIt begin, ForwardIt end) { /* ... */ } template <typename Range, typename CharT> inline auto range(const Range& range, const CharT* sep) { /* ... */ } } 现在,我想使用 strf::range<const char*>(some_char_ptr, some_char_ptr + some_length)在我的代码中。但是,如果这样做,我将收到以下错误(使用CUDA 10.1的NVCC): error: more than one …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.