NVIDIA / jitify

A single-header C++ library for simplifying the use of CUDA Runtime Compilation (NVRTC).
BSD 3-Clause "New" or "Revised" License
518 stars 64 forks source link

Fix compilation error with MSVC 2022 #100

Closed tafuri closed 2 years ago

tafuri commented 2 years ago

Trying to use the latest version of Jitify with MSVC 2022 leads to the following error error C2440: 'initializing': cannot convert from 'initializer list' to 'jitify::detail::compile_kernel::ScopedNvrtcProgramDestroyer'

It seems to me MSVC is actually in the wrong here, but this change is unintrusive enough that I believe it makes sense to push it.