Skip to content

[smart_holder] Simple experiment related to PR #4022 #4028

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

Conversation

rwgk
Copy link
Collaborator

@rwgk rwgk commented Jun 24, 2022

Description

Scratch PR, just to probe quickly what compilers support __builtin_FILE() & __builtin_LINE().

The only change on top of PR #4022 is 92021f3.

Suggested changelog entry:

rwgk added 30 commits June 12, 2022 11:24
…TER_SOURCE_FILE_LINE, baked into PYBIND11_TYPE_CASTER macro.
…esolves "unused" warning when compiling test_custom_type_casters.cpp
…ails to link. Trying GitHub Actions anyway to see if there are any platforms that support https://en.cppreference.com/w/cpp/language/tu_local before C++20. Note that Debian clang 13 C++17 works locally.
@rwgk
Copy link
Collaborator Author

rwgk commented Jun 24, 2022

Good news for PR #4022: the only compiler that supports TU-local but not __builtin_FILE() & __builtin_LINE() is MSVC 2017 (Appveyor, 15.9.21).

@rwgk rwgk closed this Jun 24, 2022
@rwgk rwgk deleted the odr_guard_sh__builtin_FILE_LINE_availability branch June 24, 2022 12:03
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