pfr
pfr copied to clipboard
Rewrite the unsafe_declval function to work well with clang in C++26 …
…mode and that is able to return prvalues
Looks like static_cast<T>(*ptr) to prvalue now fails on clang in C++26. Changed it to function pointer call
Fixes: https://github.com/boostorg/pfr/issues/208 Probably fixes: https://github.com/boostorg/pfr/issues/173, https://github.com/boostorg/pfr/issues/110, https://github.com/boostorg/pfr/issues/126
Pull Request Test Coverage Report for Build 15783550915
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
- For more information on this, see Tracking coverage changes with pull request builds.
- To avoid this issue with future PRs, see these Recommended CI Configurations.
- For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
Details
- 0 of 0 changed or added relevant lines in 0 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage remained the same at 100.0%
| Totals | |
|---|---|
| Change from base Build 15761583817: | 0.0% |
| Covered Lines: | 405 |
| Relevant Lines: | 405 |