You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't currently see a great way to pass a reference using a named keyword. When I use a reference typed keyword I get compilation errors, and if I use an untyped keyword and use std::ref it just copies the ref without decay. I feel like I should be able to use a reference typed keyword successfully, and I also feel like there is a small argument for implicit decay for reference_wrappers in both typed and untyped settings (like tuple).
The text was updated successfully, but these errors were encountered:
I don't currently see a great way to pass a reference using a named keyword. When I use a reference typed keyword I get compilation errors, and if I use an untyped keyword and use
std::ref
it just copies the ref without decay. I feel like I should be able to use a reference typed keyword successfully, and I also feel like there is a small argument for implicit decay forreference_wrapper
s in both typed and untyped settings (liketuple
).The text was updated successfully, but these errors were encountered: