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
[pairs.general] Don't encourage use of make_pair
since we have CTAD
#2492
Comments
This should go through L(E)WG to form a policy opinion; maybe they want to deprecate |
This doesn't seem editorial. I don't see that as encouragement to use the function, just a statement of fact, and |
Well, that's unfortunate. It's true that |
You assume making them behave the same is desirable. The different behaviour is intentional, not an oversight. |
This is one of the many clean-up papers I have half written that never finishes in time for any mailing deadline. If anyone else thinks this is worth pursuing, I will try to focus and finish for the pre-Kona 2019 mailing. This affects use of both make_pair and make_tuple, and we should choose between CTAD and make_* precisely to indicate whether or not unwrap_ref_decay behavior is expected. |
See https://wg21.link/pairs.general#1.sentence-2: "[...] The library also provides a matching function template to simplify their construction [...]"
The text was updated successfully, but these errors were encountered: