Skip to content
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

Clarify lifetimes of named_arg parameters #1051

Merged
merged 2 commits into from
Feb 22, 2019
Merged

Conversation

mikelui
Copy link
Contributor

@mikelui mikelui commented Feb 21, 2019

Document that fmt::arg takes a non-owning
reference, even if that reference is to
a temporary. As such, users should make sure
the lifetime of the reference lasts as long
as the named argument.

Disable doxygen for deleted overload.

Document that fmt::arg takes a non-owning
reference, even if that reference is to
a temporary. As such, users should make sure
the lifetime of the reference lasts as long
as the named argument.
include/fmt/core.h Outdated Show resolved Hide resolved
include/fmt/core.h Outdated Show resolved Hide resolved
Remove mentions of `std::reference_wrapper` and rvalues
in favor of more common terminology like dangling references.

Fix function signature that references `fmt::arg`
in the API *.rst
@vitaut vitaut merged commit 187bd1b into fmtlib:master Feb 22, 2019
@vitaut
Copy link
Contributor

vitaut commented Feb 22, 2019

Merged, thanks!

@mikelui mikelui deleted the doc-fmtarg branch February 22, 2019 18:49
@vitaut
Copy link
Contributor

vitaut commented May 12, 2019

@mikelui, could you please review the updated CONTIBUTING document, particularly the part about licensing, and let me know if you agree with it being applied to your contributions to {fmt}? The library is likely to be relicensed (#1073) so I'm collecting approval from all earlier contributors. Thanks!

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.

3 participants