Created
October 29, 2013 18:43
-
-
Save chriswailes/7220312 to your computer and use it in GitHub Desktop.
LValue written as RValue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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