-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Workaround for the interaction of constraints in expected
and explicit template instantiation in permissive modes
#4658
Workaround for the interaction of constraints in expected
and explicit template instantiation in permissive modes
#4658
Conversation
- In `<expected>`, check `is_swappable` as `is_swappable_v` can be buggy in permissive modes. - In `<iterator>`, avoid instantiation of `contiguous_iterator` for `istreambuf_iterator` and `ostreambuf_iterator`, which are instantiated in locale facets. Also adds test coverage for `expected` in permissive modes.
tests/std/tests/GH_004657_expected_constraints_permissive/test.compile.pass.cpp
Show resolved
Hide resolved
Thanks - a good workaround for a disgusting mode! 🤮 😹 I explored whether |
tests/std/tests/GH_004657_expected_constraints_permissive/test.compile.pass.cpp
Show resolved
Hide resolved
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks again for investigating and fixing this bug! 🛠️ 🚀 🐞 |
Fixes #4657.
Works around DevCom-10652420, which is closed as Not a Bug. Works around/permissive-
.<expected>
, checkis_swappable
asis_swappable_v
can be buggy in permissive modes.<iterator>
, avoid instantiation ofcontiguous_iterator
foristreambuf_iterator
andostreambuf_iterator
, which are instantiated in locale facets.Also adds test coverage for
expected
in permissive modes.