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

provide alternative implementation of has_insertion_operator for C++20 #387

Merged

Conversation

lukaszgemborowski
Copy link
Contributor

Description

in C++20 a subset of operator<<(std::ostream&, X) overloads were explicitly deleted. Using types from deleted operators cause compilation failure of has_insertion_operator

GitHub Issues

this PR is direct outcome of the discussion from #357 it also helps to solve USCiLab/cereal#638

original implementation couldn't handle explicitly deleted
operator<<(ostream, X) overloads introduced in C++20
@onqtam
Copy link
Member

onqtam commented Jun 11, 2020

Thanks for this - all builds passed! (including the ones which didn't show up in here: https://travis-ci.org/github/onqtam/doctest/builds/697205413 )

@onqtam onqtam merged commit b4fb220 into doctest:dev Jun 11, 2020
@lukaszgemborowski lukaszgemborowski deleted the alternative_has_insertion_operator branch June 11, 2020 15:54
onqtam pushed a commit that referenced this pull request Jun 27, 2020
original implementation couldn't handle explicitly deleted
operator<<(ostream, X) overloads introduced in C++20
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.

2 participants