Skip to content

Instantly share code, notes, and snippets.

@chriswailes
Created October 29, 2013 18:43
Show Gist options
  • Save chriswailes/7220312 to your computer and use it in GitHub Desktop.
Save chriswailes/7220312 to your computer and use it in GitHub Desktop.
LValue written as RValue
#include <utility>
class Foo {
public:
void operator=(Foo&& other);
};
int main(void) {
Foo a, b;
a = std::move(b);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment