https://godbolt.org/z/c5rr9aWrj
#include <sycl/sycl.hpp>
int main() {
sycl::device d;
auto id = getSyclObjImpl(d);
sycl::queue q;
auto iq = getSyclObjImpl(q);
}
compiles while it shouldn't. I think this is due to the inheritance from detail::OwnerLessBase.