Skip to content

Making CudaGraph-constructor SFINAE with requires#803

Open
fior512 wants to merge 1 commit into
taskflow:masterfrom
fior512:cudaGraph_constructor_SFINAE
Open

Making CudaGraph-constructor SFINAE with requires#803
fior512 wants to merge 1 commit into
taskflow:masterfrom
fior512:cudaGraph_constructor_SFINAE

Conversation

@fior512

@fior512 fior512 commented Jul 20, 2026

Copy link
Copy Markdown

Tests

Replicated with:

static_assert(!std::constructible_from<cudaGraph, std::string>, "bug: cudaGraph should not be constructible with std::string");

with master branch (cudagraph_i753.cpp is a local file for test):

cudagraph_i753.cpp:10:17: error: static assertion failed: bug: cudaGraph should not be constructible from std::string
   10 |   static_assert(!std::constructible_from<cudaGraph, std::string>, "bug: cudaGraph should not be constructible with std::string");
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

with this PR: fixed.

Notes

@fior512 fior512 changed the title SFINAE issue753 cudagraph_t Making CudaGraph-constructor SFINAE with requires Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant