-
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
<tuple>
: Make std::make_from_tuple
SFINAE friendly
#4528
<tuple>
: Make std::make_from_tuple
SFINAE friendly
#4528
Conversation
…NAE friendly Signed-off-by: yronglin <[email protected]>
@microsoft-github-policy-service agree |
Signed-off-by: yronglin <[email protected]>
Signed-off-by: yronglin <[email protected]>
Signed-off-by: yronglin <[email protected]>
tests/std/tests/LWG3528_make_from_tuple_impl/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/LWG3528_make_from_tuple_impl/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/LWG3528_make_from_tuple_impl/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: yronglin <[email protected]>
Signed-off-by: yronglin <[email protected]>
Thanks for your review! @frederick-vs-ja |
tests/std/tests/LWG3528_make_from_tuple_impl/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/LWG3528_make_from_tuple_impl/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: yronglin <[email protected]>
Thanks for your review! @AlexGuteniev |
Verified that this exactly duplicated the new-style (partial specialization) coverage.
Drop `_EXPORT_STD` for 17. Fix preprocessor comment.
…of a default function argument.
tests/std/tests/LWG3528_make_from_tuple_impl/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/LWG3528_make_from_tuple_impl/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/LWG3528_make_from_tuple_impl/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/LWG3528_make_from_tuple_impl/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
<tuple>
: Make std::make_from_tuple
and std::_Make_from_tuple_impl
SFINAE friendly<tuple>
: Make std::make_from_tuple
SFINAE friendly
Thanks! 😻 I pushed a bunch of fine-grained commits, simplifying the product and test code. (The commits correspond to each of my comments as I discovered them, and the tests should pass at each point; I intentionally didn't clean up the history even though later commits ended up making some of the earlier commits moot.) Please meow if I messed anything up! |
Thanks for your review and help, these changes all looks good to me. 🥳 |
Thank you all for your such detailed comments. I learned a lot of new knowledge from your comments! 🤩 |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for improving this |
Thans for refixing my first fix (#2160) in MSVC STL! |
It's my pleasure! |
STL now use
static_assert
to implements LWG3528, but after discussion in llvm/llvm-project#85263, we can constraintstd::make_from_tuple
andstd::_Make_from_tuple
to make them SFINAE friendly.