Skip to content

Internal getSyclObjImpl API is exposed to users via ADL #20820

@aelovikov-intel

Description

@aelovikov-intel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions