Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use is_copy_constructible_v #41

Closed
wants to merge 1 commit into from
Closed

Use is_copy_constructible_v #41

wants to merge 1 commit into from

Conversation

p4654545
Copy link

@p4654545 p4654545 commented Nov 3, 2020

gcc can not handle variant<cti::work, ...>. Using is_copy_constructible_v instead of is_copy_constructible<...>::value works around this problem.

@Naios

This solves issue Naios/continuable#37


What was a problem?

Using std::variant<cti::work, ...> is not possible, because of a bug in gcc.

How this PR fixes the problem?

This fix uses is_copy_constructible_v instead of is_copy_constructible<>::value on line 1425.

Check lists (check x in [ ] of list items)

  • Additional Unit Tests were added that test the feature or regression
  • Coding style (Clang format was applied)

Additional Comments (if any)

gcc can not handle variant<cti::work, ...>. Using is_copy_constructible_v instead of is_copy_constructible<...>::value works around this problem.
@p4654545 p4654545 requested a review from Naios as a code owner November 3, 2020 18:27
@p4654545
Copy link
Author

p4654545 commented Nov 3, 2020

I now see the solution should be C++14 and not C++17. sorry.

@p4654545 p4654545 closed this Nov 3, 2020
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