Skip to content

Instantly share code, notes, and snippets.

@andy-landy
Created February 24, 2021 01:13
Show Gist options
  • Save andy-landy/50e337f21a6dab9c94785909803a22c8 to your computer and use it in GitHub Desktop.
Save andy-landy/50e337f21a6dab9c94785909803a22c8 to your computer and use it in GitHub Desktop.
Is it OK to declare a function
... f(Value value) { ...
instead of two functions
... f(const Value& value) { ...
... f(Value &&value) { ...
if Value has a move constructor Value(Value&& value)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment