cudaGraph constructor is not SFINAE-friendly · Issue #753 · taskflow/taskflow · GitHub
Skip to content

cudaGraph constructor is not SFINAE-friendly #753

Description

@doocman

Describe the bug
Doing something like:

if constexpr(std::constructible_from<tf::cudaGraph_t, std::string>) {
  return tf::cudaGraph_t("hello");
else {
  return tf::cudaGrapg_t();
}

cause a compilation error as the constructor in tf::cudaGrapg_t just delegates to it's creator. Adding a simple requires(std::invocable<Creator, Args...>) to the constructor would probably solve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions