Skip to content

What prevents handler from being moved or copied? #807

@Pennycook

Description

@Pennycook

Specification Version

SYCL 2020 (Revision 9)

Section Number(s)

Issue Description

The specification says:

It is disallowed for an instance of the SYCL handler class to be moved or copied.

It is unclear whether "disallowed" means that the implementation must prevent this somehow, or if it's simply undefined behavior. The definition of the handler class does not show that the copy and move constructors are deleted, nor that they exist but are private.

Note that the issue and potential fixes are very similar to those being discussed for the group class in #627.

Code Example (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions