1

I encountered a some syntax I've never seen before when searching for another answer. One particular function was typed as:

Foo& operator=(Foo&&) &; // <-- ???

I have no idea what the & symbol after the declaration does to this statement. When I typed it into my IDE, it compiled fine without any errors or warnings, so this is valid.

Note: My attempts at searching this question just yield people asking about references in the return or parameters

James Nguyen
  • 1,069
  • 1
  • 9
  • 20

0 Answers0